Re: Fwd: Re: [HACKERS] HELP! foreign eys & inheritance

2000-12-12 Thread Stephan Szabo
You'll need to make a unique index/unique constraint on the fields of child you wish to constrain. The unique constraint check wasn't checked in 7.0, and also unique constraints are not inherited so it has to be on the actual table you want to reference. Stephan Szabo [EMAIL PROTECTED] On Wed,

Fwd: Re: [HACKERS] HELP! foreign eys & inheritance

2000-12-12 Thread Horst Herb
Ooops, sorry, error in this example: > The following example worked in previous versions (7.0.2 was the last I > tested), but not in 7.1 any more: > > create table parent ( > global_id serial > ); > > create table child ( > anything text > ) inherits (parent); > > create table foreign ( > fk_id in

[HACKERS] HELP! foreign eys & inheritance

2000-12-12 Thread Horst Herb
The following example worked in previous versions (7.0.2 was the last I tested), but not in 7.1 any more: create table parent ( global_id serial ); create table child ( anything text ) inherits (parent); create table foreign ( fk_id int4 references parent(global_id) on update cascade on delete