Re: BUG #13224: Foreign key constraints cannot be changed to deferrable

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: chris(at)chrullrich(dot)net
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #13224: Foreign key constraints cannot be changed to deferrable
Date: 2015-05-03 14:16:58
Message-ID: 18844.1430662618@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

chris(at)chrullrich(dot)net writes:
> According to the manual, ALTER TABLE ... ALTER CONSTRAINT ... DEFERRABLE
> should work. It does not, according to the script below.

Hm. It works fine if you cause a reconnect (\c) after the ALTER TABLE.
I suspect the problem is that ATExecAlterConstraint forces a relcache
inval on the named table (detail), but neglects to do so on the other
table (master). The session's cached pg_trigger records for master thus
still say the triggers are nondeferrable.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2015-05-03 17:00:48 Re: Failure to coerce unknown type to specific type
Previous Message chris 2015-05-03 08:33:43 BUG #13224: Foreign key constraints cannot be changed to deferrable