Обсуждение: pg_dump and truncate

Поиск
Список
Период
Сортировка

pg_dump and truncate

От
Colton A Smith
Дата:
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?

Thanks as always!

Re: pg_dump and truncate

От
"Jim C. Nasby"
Дата:
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