Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id A073837BD98 for ; Thu, 2 Oct 2008 09:11:55 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 84918-02 for ; Thu, 2 Oct 2008 09:11:49 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 0DCBC37BD6C for ; Thu, 2 Oct 2008 09:11:49 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id m92CBj4V023224; Thu, 2 Oct 2008 08:11:45 -0400 (EDT) To: "Daniel Cristian Cruz" cc: pgsql-admin@postgresql.org Subject: Re: DROP TABLE waiting for pg_dump In-reply-to: <48d0cacb0810020433k1eadf01ckaee4990fc25ab5c6@mail.gmail.com> References: <48d0cacb0810020433k1eadf01ckaee4990fc25ab5c6@mail.gmail.com> Comments: In-reply-to "Daniel Cristian Cruz" message dated "Thu, 02 Oct 2008 08:33:44 -0300" Date: Thu, 02 Oct 2008 08:11:45 -0400 Message-ID: <23223.1222949505@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200810/5 X-Sequence-Number: 30461 "Daniel Cristian Cruz" writes: > I had a problem today, where pg_dump was locking a concurrent DROP TABLE, > and it was another table, not the table in the COPY running. Is it normal? Yes. pg_dump acquires ACCESS SHARE lock on all the tables it's intending to dump. Without that it couldn't guarantee a consistent dump. regards, tom lane