Re: [HACKERS] FOREIGN KEY and shift/reduce - Mailing list pgsql-hackers

From Karel Zak - Zakkr
Subject Re: [HACKERS] FOREIGN KEY and shift/reduce
Date
Msg-id Pine.LNX.3.96.991206214515.18632A-100000@ara.zf.jcu.cz
Whole thread Raw
In response to FOREIGN KEY and shift/reduce  (wieck@debis.com (Jan Wieck))
List pgsql-hackers
On Mon, 6 Dec 1999, Jan Wieck wrote:

> Hi,
> 
>     Another interesting  question  is  about  inheritance.  If  a
>     REFERENCES constraint exists for a table, must another table,
>     inheriting this one, also get all the FK checks applied?

Hi,

This inspire me for next question: What is in PosgreSQL inherited? 

IMHO is problem make inheriting FOREIGN KEY if not is support for UNIQUE 
or PRIMARY KEYs inheriting. (Or is it in CVS tree?).

PostgreSQL 6.5.3:

test=> create table aaa (x int4 UNIQUE);
NOTICE:  CREATE TABLE/UNIQUE will create implicit index 'aaa_x_key' for
table 'aaa'
CREATE
test=> create table y () inherits (aaa);
CREATE
test=> insert into y values (1);
INSERT 590807 1
test=> insert into y values (1);
INSERT 590808 1
                        Karel

PS. I very look forward to a FOREIGN KEY, with this feature will    life easier and the PgSQL will more tread on the
heelsof non-GNU   engines. 
 



pgsql-hackers by date:

Previous
From: Don Baccus
Date:
Subject: Re: view dying out of the blue...
Next
From: Peter Eisentraut
Date:
Subject: Multibyte in autoconf