pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedpg_dump and truncate
2+ messages / 2 participants
[nested] [flat]
* pg_dump and truncate
@ 2005-11-03 16:43 Colton A Smith <smith@cs.utk.edu>
2005-11-03 19:31 ` Re: pg_dump and truncate Jim C. Nasby <jnasby@pervasive.com>
0 siblings, 1 reply; 2+ messages in thread
From: Colton A Smith @ 2005-11-03 16:43 UTC (permalink / raw)
To: pgsql-admin
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!
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: pg_dump and truncate
2005-11-03 16:43 pg_dump and truncate Colton A Smith <smith@cs.utk.edu>
@ 2005-11-03 19:31 ` Jim C. Nasby <jnasby@pervasive.com>
0 siblings, 0 replies; 2+ messages in thread
From: Jim C. Nasby @ 2005-11-03 19:31 UTC (permalink / raw)
To: Colton A Smith <smith@cs.utk.edu>; +Cc: 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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2005-11-03 19:31 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-11-03 16:43 pg_dump and truncate Colton A Smith <smith@cs.utk.edu>
2005-11-03 19:31 ` Jim C. Nasby <jnasby@pervasive.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox