Re: Re: [DOCS] Inheritance docs error. - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Re: [DOCS] Inheritance docs error.
Date
Msg-id Pine.LNX.4.30.0101031750250.1310-100000@peter.localdomain
Whole thread Raw
In response to Re: Re: [DOCS] Inheritance docs error.  (Hannu Krosing <hannu@tm.ee>)
List 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@gmx.net       http://yi.org/peter-e/


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Re: [DOCS] Inheritance docs error.
Next
From: "Barnes, Sandy (Sandra)"
Date:
Subject: V7.0 Error: OID ##### no longer exists in pg_databas e