Re: Thus spoke SQL3 (on OO) - Mailing list pgsql-hackers

From Hannu Krosing
Subject Re: Thus spoke SQL3 (on OO)
Date
Msg-id 3928F748.3F51EA87@tm.ee
Whole thread Raw
In response to Thus spoke SQL3 (on OO)  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
Chris Bitmead wrote:
> 
> Hannu Krosing wrote:
> >
> > Chris Bitmead wrote:
> > >
> > > Hannu Krosing wrote:
> > >
> > > > Chris, what is your position on having a single primary key for all
> > > > inherited columns ?
> > >
> > > What is the significance of a primary key compared to any old unique
> > > key?
> >
> > I don't know ;) Some theorists seem to think it important, and PG allows
> > only one PK per table.
> >
> > I just meant that primary key (as well as any other uniqe key) should be
> > inherited from parent table
> 
> What object theory would say is that oid uniquely identifies an object.
> Other unique keys should usually be inherited.

it would be hard to define RI by just saying that some field references "an
OID",
often you want to be able do define something more specific.

It would be too much for most users to require that all primary and foreign
keys 
must be of type OID.

It about flexibility, much much like the situation with SERIAL vs.
INT DEFAULT NEXTVAL('SOME_SEQUENCE')

------------
Hannu


pgsql-hackers by date:

Previous
From: "Kardos, Dr. Andreas"
Date:
Subject: Re: OO / fe-be protocol
Next
From: Hannu Krosing
Date:
Subject: Re: Postgresql OO Patch