From: Tom Lane <tgl@sss.pgh.pa.us>
To: Wells Oliver <wells.oliver@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Dropping constraints on a table locks referenced table... why?
Date: Tue, 17 Apr 2018 14:57:52 -0400
Message-ID: <2444.1523991472@sss.pgh.pa.us> (raw)
In-Reply-To: <CAOC+FBX7kKHXzfAyeMGn__vE8WoXYpDSR=SUaGtBfTmFoNQpAQ@mail.gmail.com>
References: <CAOC+FBX7kKHXzfAyeMGn__vE8WoXYpDSR=SUaGtBfTmFoNQpAQ@mail.gmail.com>
Wells Oliver <wells.oliver@gmail.com> 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
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, wells.oliver@gmail.com
Subject: Re: Dropping constraints on a table locks referenced table... why?
In-Reply-To: <2444.1523991472@sss.pgh.pa.us>
* 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