Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
Thread:
Lists: pgsql-docspgsql-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

pgsql-docs by date

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

pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group