Re: hung backends stuck in spinlock heavy endless loop

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Merlin Moncure <mmoncure@gmail.com>
Cc: Peter Geoghegan <pg@heroku.com>, Andres Freund <andres@2ndquadrant.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2015-01-14T14:41:48Z
Lists: pgsql-hackers
Merlin Moncure <mmoncure@gmail.com> writes:
> There were seven process with that backtrace exact backtrace (except
> that randomly they are sleeping in the spinloop).   Something else
> interesting: autovacuum has been running all night as well.  Unlike
> the other process however, cpu utilization does not register on top.
> I backtraced them as well.  They are not identical.  One of them looks
> like this:

What are the autovac processes doing (according to pg_stat_activity)?

			regards, tom lane


Commits

  1. Improve hash_create's API for selecting simple-binary-key hash functions.

  2. Fix WAL-logging of B-tree "unlink halfdead page" operation.

  3. Fix backup-block numbering in redo of b-tree split.

  4. Cleanup of new b-tree page deletion code.

  5. Fix bug in the new B-tree incomplete-split code.

  6. Fix bug in new B-tree page deletion code.

  7. Fix rm_desc routine of b-tree page delete records.

  8. Make the handling of interrupted B-tree page splits more robust.

  9. Fix race condition in B-tree page deletion.