Re: pg_dump and truncate - Mailing list pgsql-admin

From Jim C. Nasby
Subject Re: pg_dump and truncate
Date
Msg-id 20051103193119.GU55520@pervasive.com
Whole thread Raw
In response to pg_dump and truncate  (Colton A Smith <smith@cs.utk.edu>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: Error:PG_DUMP relation pg_user does not exist
Next
From: "Jim C. Nasby"
Date:
Subject: Re: Pre-allocation of space: a business rationale