Re: [HACKERS] Re: Inheritance docs error.

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Hannu Krosing <hannu(at)tm(dot)ee>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Robert B(dot) Easter" <reaster(at)comptechnews(dot)com>, 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:54:26
Message-ID: Pine.LNX.4.30.0101031750250.1310-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs pgsql-hackers

Hannu Krosing writes:

> > <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

Nope. In that case it would read

<table contents source> ::=
{ <table element list>
| OF <user-defined type> }
[ <subtable clause> ]
[ <table element list> ]

because ISO/IEC 9075-1:1999 section 6.1 says:

| The alternative operator. The vertical bar indicates that the
portion of the formula following the bar is an alternative
to the portion preceding the bar. If the vertical bar appears
at a position where it is not enclosed in braces or square
brackets, it specifies a complete alternative for the element
defined by the production rule. If the vertical bar appears
in a portion of a formula enclosed in braces or square
brackets, it specifies alternatives for the contents of the
innermost pair of such braces or brackets.

--
Peter Eisentraut peter_e(at)gmx(dot)net http://yi.org/peter-e/

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Peter Eisentraut 2001-01-03 17:32:40 Re: RE: RE: Re: MySQL and PostgreSQL speed compare
Previous Message Tom Lane 2001-01-03 16:53:26 Re: Sequence

Browse pgsql-hackers by date

  From Date Subject
Next Message Patrick Welche 2001-01-03 19:04:12 initdb prob
Previous Message Tom Lane 2001-01-03 16:40:43 Re: [HACKERS] Re: Inheritance docs error.