Re: creating CHECK constraints as NOT VALID - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: creating CHECK constraints as NOT VALID
Date
Msg-id 1308157510-sup-5997@alvh.no-ip.org
Whole thread Raw
In response to Re: creating CHECK constraints as NOT VALID  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: creating CHECK constraints as NOT VALID
List pgsql-hackers
Excerpts from Robert Haas's message of mié jun 15 12:53:59 -0400 2011:
> On Wed, Jun 15, 2011 at 12:24 PM, Alvaro Herrera
> <alvherre@commandprompt.com> wrote:
> > Hmm, I think this means we need to send a sinval message to invalidate
> > cached plans when a constraint is validated.  I'll see about this.
> 
> I feel like that really ought to be happening automatically, as a
> result of committing the transaction that did the system catalog
> modification.  It seems pretty strange if it isn't.

The catalog change takes place in pg_constraint, so I'm not sure that
it'd cause the sort of event we need.  I'm testing whether adding a call
to CacheInvalidateRelcache in the appropriate place works.

-- 
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Strict Set Returning Functions
Next
From: Tom Lane
Date:
Subject: Re: bad posix_fadvise support causes initdb to exit ungracefully