public inbox for [email protected]  
help / color / mirror / Atom feed
From: Josh Berkus <[email protected]>
To: Peter Eisentraut <[email protected]>
Cc: Bruce Momjian <[email protected]>
Cc: [email protected]
Subject: Re: Clarification to catalog-pg-class
Date: Fri, 13 Feb 2009 10:22:41 -0800
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
	<[email protected]>

Peter,

> I suppose a more constructive point would be, where are the other 
> constraint types kept track of?

AFAICT, we're not tracking them in pg_class at all anymore, except that 
FKs will set relhastrigger=true in the absensce of any other triggers.

The confusion on this particular line is caused by the "see 
pg_constraint catalog", which covers *all* constraints, whereas 
relconstrains only counts the CHECK constraints and not other types. 
That's why I think a small emphasis on CHECK would prevent people from 
being confused again.

Of course, at this point, we've spent more time discussing the issue 
than people have been confused by it, probably.

--Josh





view thread (10+ messages)

reply

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: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: Clarification to catalog-pg-class
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox