Re: pg_restore encounter deadlock since PostgreSQL bringing up - Mailing list pgsql-general

From Tom Lane
Subject Re: pg_restore encounter deadlock since PostgreSQL bringing up
Date
Msg-id 29263.1447771168@sss.pgh.pa.us
Whole thread Raw
In response to Re: pg_restore encounter deadlock since PostgreSQL bringing up  (zh1029 <zh1029@sina.com>)
List pgsql-general
zh1029 <zh1029@sina.com> writes:
> Unfortunately what's the process 2720 is unknown as no any else log to
> indicate it. It might because the debug level of PostgreSQL had been set too
> lower to show more.

The query you quoted for 2720 looks exactly like one that pg_dump will
issue, cf dumpSequence().  What I think is going on here is that you've
got some cron job that aggressively connects to the database and runs a
pg_dump the moment you start it.  It's unsurprising that that would
deadlock against a pg_restore -C.

            regards, tom lane


pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: referencing other INSERT VALUES columns inside the insert
Next
From: Geoff Winkless
Date:
Subject: Re: referencing other INSERT VALUES columns inside the insert