public inbox for [email protected]  
help / color / mirror / Atom feed
From: Erik Rijkers <[email protected]>
To: [email protected]
Subject: LATERAL synopsis
Date: Sat, 27 Oct 2012 17:54:25 +0200
Message-ID: <[email protected]> (raw)

On the SELECT manual-page synopsis,

   http://www.postgresql.org/docs/devel/static/sql-select.html

the LATERAL feature is documented in three sparate lines (the are separate, right?).  Because of
their length I was going to reformat them to let them fit in the .PDF page format, but looking a
bit closer at that synopsis I have to admit I don't really understand it.  Could someone please
explain?


[ LATERAL ] ( select ) [ AS ] alias [ ( column_alias [, ...] ) ]

and:

[ LATERAL ] function_name ( [ argument [, ...] ] ) [ AS ] alias [ ( column_alias [, ...] |
column_definition [, ...] ) ]

and:

[ LATERAL ] function_name ( [ argument [, ...] ] ) AS ( column_definition [, ...] )

All three are listed as possible 'from_item's.


But what does 'column_definition' stand for?  (These are the only occurrences of
'column_definition' in the manual.)

Are not the first two of the above LATERAL-lines sufficient?  Or perhaps it would be even better
to reduce it to only the first of those three lines (i.e. get rid of the 'function_name' lines)?


Thanks,

Erik Rijkers





view thread (3+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: LATERAL synopsis
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox