Re: [HACKERS] pg_constraint

2002-04-26 Thread Rod Taylor
> > The only problem with this is that I don't want the rename of a > > constraint to have to fall over into the pg_depend table. pg_depend > > is currently happy with system OIDS or a Relation OID and some unique > > number to represent it -- much as pg_description wouldn't want to know > > the n

Re: [HACKERS] pg_constraint

2002-04-26 Thread Tom Lane
"Rod Taylor" <[EMAIL PROTECTED]> writes: >> Could we instead insist on a unique name per-table, and make this >> table's >> key be (conrelid, conname)? Assigning a number seems quite >> artificial. > The only problem with this is that I don't want the rename of a > constraint to have to fall ove

Re: [HACKERS] pg_constraint

2002-04-26 Thread Rod Taylor
> Could we instead insist on a unique name per-table, and make this table's > key be (conrelid, conname)? Assigning a number seems quite artificial. The only problem with this is that I don't want the rename of a constraint to have to fall over into the pg_depend table. pg_depend is currently h

Re: [HACKERS] pg_constraint

2002-04-26 Thread Tom Lane
"Christopher Kings-Lynne" <[EMAIL PROTECTED]> writes: > Hmmm...I don't see the need at all for NOT NULL constraint tracking. The > spec doesn't seem to require it and we do not have names for them anyway. > Even if they were given names, it'd be pointless, as there's only one per > column. Hmm,

Re: [HACKERS] pg_constraint

2002-04-26 Thread Tom Lane
"Rod Taylor" <[EMAIL PROTECTED]> writes: > For tracking of Foreign Keys, Check constraints, and maybe NULL / NOT > NULL (specific type of check constraint) I intend to create (as per > suggestion) pg_constraint. > conrelid > conname > contype ('c'heck, 'f'oreign key, ???) 'u'unique, 'p'rimary ke

Re: [HACKERS] pg_constraint

2002-04-26 Thread Rod Taylor
> > For tracking of Foreign Keys, Check constraints, and maybe NULL / NOT > > NULL (specific type of check constraint) I intend to create (as per > > suggestion) pg_constraint. > > Hmmm...I don't see the need at all for NOT NULL constraint tracking. The > spec doesn't seem to require it and we do

Re: [HACKERS] pg_constraint

2002-04-26 Thread Christopher Kings-Lynne
> For tracking of Foreign Keys, Check constraints, and maybe NULL / NOT > NULL (specific type of check constraint) I intend to create (as per > suggestion) pg_constraint. Hmmm...I don't see the need at all for NOT NULL constraint tracking. The spec doesn't seem to require it and we do not have n

[HACKERS] pg_constraint

2002-04-25 Thread Rod Taylor
For tracking of Foreign Keys, Check constraints, and maybe NULL / NOT NULL (specific type of check constraint) I intend to create (as per suggestion) pg_constraint. conrelid conname contype ('c'heck, 'f'oreign key, ???) conkey (int2vector of columns of relid, like pg_index.indkey) connum int4 --