Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f8Vnk-0000BQ-TI for pgsql-admin@arkaria.postgresql.org; Tue, 17 Apr 2018 18:58:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f8Vnj-000154-Ne for pgsql-admin@arkaria.postgresql.org; Tue, 17 Apr 2018 18:57:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f8Vni-0000qp-0I for pgsql-admin@lists.postgresql.org; Tue, 17 Apr 2018 18:57:58 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f8Vne-0004JO-Vb for pgsql-admin@postgresql.org; Tue, 17 Apr 2018 18:57:57 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w3HIvqQM002445; Tue, 17 Apr 2018 14:57:52 -0400 From: Tom Lane To: Wells Oliver cc: pgsql-admin@postgresql.org Subject: Re: Dropping constraints on a table locks referenced table... why? In-reply-to: References: Comments: In-reply-to Wells Oliver message dated "Tue, 17 Apr 2018 11:25:14 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2443.1523991472.1@sss.pgh.pa.us> Date: Tue, 17 Apr 2018 14:57:52 -0400 Message-ID: <2444.1523991472@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Wells Oliver writes: > I have a table A which has an FK constraint referencing another table B. > Dropping this FK constraint on A locks table B, as does trying to drop > table A. Why is this? There are triggers on both tables that have to be removed. regards, tom lane