Re: pg_dump blocks insert update on table

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_dump blocks insert update on table
Дата
Msg-id 2711364.1709226898@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pg_dump blocks insert update on table  (Bindra <11bindra11@gmail.com>)
Список pgsql-admin
Bindra <11bindra11@gmail.com> writes:
> We are using PostgreSQL 11.17

You realize that 11.x is out of support, right?

> While doing pg_dumpall, it blocks insert/update on some table where copy
> statemnets is executed.

pg_dump only takes AccessShareLock on tables it dumps.  That does not
block inserts or updates.  What may be happening is that you have some
third process that is trying to take an exclusive lock on the table.
It will queue up behind pg_dump's nonexclusive lock, and then other
operations such as insert/update will block behind it.  This is just
speculation since you've provided zero detail, but that's what I'd
look for.  The pg_locks view could help you identify the culprit.

            regards, tom lane



В списке pgsql-admin по дате отправления:

Предыдущее
От: Bindra
Дата:
Сообщение: pg_dump blocks insert update on table
Следующее
От: Bindra Bambharoliya
Дата:
Сообщение: Re: pg_dump blocks insert update on table