Re: pg_dump and truncate

Поиск
Список
Период
Сортировка
От Jim C. Nasby
Тема Re: pg_dump and truncate
Дата
Msg-id 20051103193119.GU55520@pervasive.com
обсуждение исходный текст
Ответ на pg_dump and truncate  (Colton A Smith <smith@cs.utk.edu>)
Список pgsql-admin
On Thu, Nov 03, 2005 at 11:43:37AM -0500, Colton A Smith wrote:
> Hi:
>
>   While pg_dump is dumping my database, I find that when I try to truncate
> a table the query hangs.  Is that the expected behavior?  What if I try
> to drop a table? Will that hang as well?

Yes. dump grabs an AccessSharedLock on everything it's going to dump.
--
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Error:PG_DUMP relation pg_user does not exist
Следующее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: Pre-allocation of space: a business rationale