Re: Thus spoke SQL3 (on OO)

Поиск
Список
Период
Сортировка
От Hannu Krosing
Тема Re: Thus spoke SQL3 (on OO)
Дата
Msg-id 3928F748.3F51EA87@tm.ee
обсуждение исходный текст
Ответ на Thus spoke SQL3 (on OO)  (Peter Eisentraut <peter_e@gmx.net>)
Список 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 по дате отправления:

Предыдущее
От: "Kardos, Dr. Andreas"
Дата:
Сообщение: Re: OO / fe-be protocol
Следующее
От: Hannu Krosing
Дата:
Сообщение: Re: Postgresql OO Patch