Re: pg_restore encounter deadlock since PostgreSQL bringing up

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_restore encounter deadlock since PostgreSQL bringing up
Дата
Msg-id 29263.1447771168@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pg_restore encounter deadlock since PostgreSQL bringing up  (zh1029 <zh1029@sina.com>)
Список 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 по дате отправления:

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: referencing other INSERT VALUES columns inside the insert
Следующее
От: Geoff Winkless
Дата:
Сообщение: Re: referencing other INSERT VALUES columns inside the insert