Re: [SQL] Integrity and Inheritance

2001-06-10 Thread Stephan Szabo
On Sun, 10 Jun 2001, Tom Lane wrote: > Stephan Szabo <[EMAIL PROTECTED]> writes: > > One problem is that for update isn't supported across inheritance trees > > AFAICS and the triggers use for update for the appropriate locking. > > It's possible (maybe even likely) that this could be fixed wit

Re: [SQL] Integrity and Inheritance

2001-06-10 Thread Tom Lane
Stephan Szabo <[EMAIL PROTECTED]> writes: > One problem is that for update isn't supported across inheritance trees > AFAICS and the triggers use for update for the appropriate locking. It's possible (maybe even likely) that this could be fixed with minimal work. I punted on it for 7.1 due to la

Re: [SQL] Integrity and Inheritance

2001-06-09 Thread Stephan Szabo
On 10 Jun 2001, Christophe Labouisse wrote: > I wanted to build the following schema : > > - one "generic" document table with a column doc_id ; > - a couple of "specific" document tables inheriting from doc ; > - a table refering a document by it's id with and integrity constraint > on it. > >

[SQL] Integrity and Inheritance

2001-06-09 Thread Christophe Labouisse
I wanted to build the following schema : - one "generic" document table with a column doc_id ; - a couple of "specific" document tables inheriting from doc ; - a table refering a document by it's id with and integrity constraint on it. In SQL : CREATE TABLE doc ( doc_id serial PRIMARY K