pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jim C. Nasby <jnasby@pervasive.com>
To: Colton A Smith <smith@cs.utk.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: pg_dump and truncate
Date: Thu, 3 Nov 2005 13:31:19 -0600
Message-ID: <20051103193119.GU55520@pervasive.com> (raw)
In-Reply-To: <Pine.LNX.4.62.0511031140500.782@cetus5.cs.utk.edu>
References: <Pine.LNX.4.62.0511031140500.782@cetus5.cs.utk.edu>

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



view thread (2+ messages)

Message-ID: <20051103193119.GU55520@pervasive.com>
Permalink:  ../20051103193119.GU55520@pervasive.com/
Also on:    postgresql.org/message-id/20051103193119.GU55520@pervasive.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: jnasby@pervasive.com, smith@cs.utk.edu
  Subject: Re: pg_dump and truncate
  In-Reply-To: <20051103193119.GU55520@pervasive.com>
  References: <Pine.LNX.4.62.0511031140500.782@cetus5.cs.utk.edu> <20051103193119.GU55520@pervasive.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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