Re: [HACKERS] Re: [DOCS] Inheritance docs error.

2001-01-03 Thread Peter Eisentraut
Hannu Krosing writes: > > ::= > > > > | OF > > [ ] > > [ ] > to me it seems that only this is OR-d : | OF > > > and the rest ([ ],[ ])is just > optional Nope. In that case it would read ::=

Re: [HACKERS] Re: [DOCS] Inheritance docs error.

2001-01-03 Thread Tom Lane
Hannu Krosing <[EMAIL PROTECTED]> writes: > Tom Lane wrote: > > ::= > > > > | OF > > [ ] > > [ ] > > to me it seems that only this is OR-d : | OF > > and the rest ([ ],[ ])is just > optional The grammar is less t

Re: [HACKERS] Re: [DOCS] Inheritance docs error.

2001-01-03 Thread Hannu Krosing
Tom Lane wrote: > > One thing that bothered me is that my reading of the SQL99 draft > disallows the UNDER syntax you are using. I read: > > ::= > CREATE [ ] TABLE > > [ ON COMMIT ROWS ] > > ::= > >

Re: [HACKERS] Re: [DOCS] Inheritance docs error.

2001-01-02 Thread Tom Lane
"Robert B. Easter" <[EMAIL PROTECTED]> writes: > I thought about this UNDER/INHERITS stuff months ago and wrote this file: > http://www.comptechnews.com/~reaster/pgoo.html Good analysis, especially the fundamental point that UNDER is only designed to support single inheritance, whereas INHERITS a

Re: [HACKERS] Re: [DOCS] Inheritance docs error.

2001-01-01 Thread Thomas Lockhart
> I am strongly inclined to rip out the pseudo-UNDER clause and support > only the old-style INHERITS syntax for 7.1. UNDER is adding no > functionality and I think we will eventually regret using an SQL keyword > for non-SQL semantics. I agree with you, Hannu, et al. If it isn't making a good e

Re: [HACKERS] Re: [DOCS] Inheritance docs error.

2001-01-01 Thread Robert B. Easter
I thought about this UNDER/INHERITS stuff months ago and wrote this file: http://www.comptechnews.com/~reaster/pgoo.html It might have something of value to someone. I'm not sure everything in the file is correct though. I remember the idea of UNDER is to be compatible with storing data from

[HACKERS] Re: [DOCS] Inheritance docs error.

2000-12-31 Thread Hannu Krosing
Tom Lane wrote: > > Peter Eisentraut <[EMAIL PROTECTED]> writes: > They are all correct: UNDER is the new SQL99 syntax, INHERITS is the > traditional Postgres syntax. > >> > >> Current docs do appear to be erroneous: they claim the UNDER phrase goes > >> where INHERIT does, which is no

[HACKERS] Re: [DOCS] Inheritance docs error.

2000-12-31 Thread Peter Eisentraut
Tom Lane writes: > I am strongly inclined to rip out the pseudo-UNDER clause and support > only the old-style INHERITS syntax for 7.1. UNDER is adding no > functionality and I think we will eventually regret using an SQL keyword > for non-SQL semantics. I agree. -- Peter Eisentraut [EMAI

[HACKERS] Re: [DOCS] Inheritance docs error.

2000-12-30 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: They are all correct: UNDER is the new SQL99 syntax, INHERITS is the traditional Postgres syntax. >> >> Current docs do appear to be erroneous: they claim the UNDER phrase goes >> where INHERIT does, which is not what the grammar thinks. I