Re: Postgres processes getting stuck (bug?) - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: Postgres processes getting stuck (bug?)
Date
Msg-id 20160429232247.GA174492@alvherre.pgsql
Whole thread Raw
In response to Postgres processes getting stuck (bug?)  (Ciprian Grigoras <ciprian.grigoras@vitals.com>)
List pgsql-general
Ciprian Grigoras wrote:

> Has anyone seen a similar issue (maybe a bug in the 9.0 version ?) where
> simple statements don't finish and get locked there and can't be killed by
> the pg_terminate_backed ? What is the cause of this ?

Interesting.  I wonder if you just wrapped around pg_multixact and the
backend is stuck in the loop there.  I have never heard of anyone with
this problem, and wraparound is supposed to work fine in 9.0.  (As I
recall that code is there since 8.1 so it'd be very surprising that it
would have bugs there and not notice all this time).

Since you've been evidently running with this for years and never seen
this problem, I would be surprised if you ever see it again.  Still, if
it does happen, please do grab a stack trace with GDB on the blocked
processes.  Make sure to have debug symbols.

--
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


pgsql-general by date:

Previous
From: Eric Ridge
Date:
Subject: How to manually force a transaction wraparound
Next
From: Tom Lane
Date:
Subject: Re: Allow disabling folding of unquoted identifiers to lowercase