Re: Dropping constraints on a table locks referenced table... why?

From: Wells Oliver <wells(dot)oliver(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Dropping constraints on a table locks referenced table... why?
Date: 2018-04-18 18:14:41
Message-ID: CAOC+FBXgecnsA8vaUcODiMWK3gCr4UQBVbA6HAwgB6A5DK6+EQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Where can I see these triggers? They don't show under the PG Admin trigger
tab of course, are they, I don't know, special triggers, stored elsewhere?
Can I query an internal PG table?

Just trying to understand better...

On Tue, Apr 17, 2018 at 11:57 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> Wells Oliver <wells(dot)oliver(at)gmail(dot)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
>

--
Wells Oliver
wells(dot)oliver(at)gmail(dot)com <wellsoliver(at)gmail(dot)com>

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2018-04-18 18:39:25 Re: Dropping constraints on a table locks referenced table... why?
Previous Message Adrian Klaver 2018-04-18 14:02:32 Re: pg_upgrade help