X-Original-To: pgsql-admin-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 8F1D79FA6B4 for ; Mon, 19 Jun 2006 15:26:45 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 79582-01 for ; Mon, 19 Jun 2006 15:26:34 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 3DAA09FA6A2 for ; Mon, 19 Jun 2006 15:26:33 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k5JIQU1W020385; Mon, 19 Jun 2006 14:26:30 -0400 (EDT) To: "Sriram Dandapani" cc: pgsql-admin@postgresql.org Subject: Re: truncate partitioned table locking In-reply-to: <6992E470F12A444BB787B5C937B9D4DF04C4CDCB@ca-mail1.cis.local> References: <6992E470F12A444BB787B5C937B9D4DF04C4CDCB@ca-mail1.cis.local> Comments: In-reply-to "Sriram Dandapani" message dated "Mon, 19 Jun 2006 10:11:49 -0700" Date: Mon, 19 Jun 2006 14:26:30 -0400 Message-ID: <20384.1150741590@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/148 X-Sequence-Number: 22110 "Sriram Dandapani" writes: > I have master table A, inherited by Table B and Table C > Does the truncation of a child table take a lock on the master table ? No, but it certainly locks the child table ... and queries on A are going to try to scan all three tables. regards, tom lane