Re: [HACKERS] Re: Inheritance docs error.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Hannu Krosing <hannu(at)tm(dot)ee>
Cc: "Robert B(dot) Easter" <reaster(at)comptechnews(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Paul Govereau <pgoverea(at)akamai(dot)com>, pgsql-docs(at)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [HACKERS] Re: Inheritance docs error.
Date: 2001-01-03 16:40:43
Message-ID: 16435.978540043@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs pgsql-hackers

Hannu Krosing <hannu(at)tm(dot)ee> writes:
> Tom Lane wrote:
> > <table contents source> ::=
> > <table element list>
> > | OF <user-defined type>
> > [ <subtable clause> ]
> > [ <table element list> ]
>
> to me it seems that only this is OR-d : <table element list> | OF
> <user-defined type>
> and the rest ([ <subtable clause> ],[ <table element list> ])is just
> optional

The grammar is less than perfectly clear, isn't it? But that reading
just doesn't make any sense, because it would allow <table contents
source> to be (among other things) <table element list> <table element list>
which I am sure is not what they intend. The last line has to be part
of the second alternative, it seems to me, and therefore the
next-to-last line is too.

regards, tom lane

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Tim Uckun 2001-01-03 16:44:40 Re: Re: RE: Re: MySQL and PostgreSQL speed compare
Previous Message Tom Lane 2001-01-03 16:24:46 Re: Postgres ignoring RTree for geometric operators

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2001-01-03 16:54:26 Re: [HACKERS] Re: Inheritance docs error.
Previous Message Peter Eisentraut 2001-01-03 16:00:36 Re: Please review TODO list