Allow AS to be omitted when specifying an output column name in SELECT
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 15 Feb 2008 22:17:06 +0000 (22:17 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 15 Feb 2008 22:17:06 +0000 (22:17 +0000)
commit4f08d8492598a518f803d8c2979b39f0050b0f8d
tree55bda09411589ef070dd68259571e02992547375
parentb312cb2cfd3c7b9811b05212c17626a8c99e3908
Allow AS to be omitted when specifying an output column name in SELECT
(or RETURNING), but only when the output name is not any SQL keyword.
This seems as close as we can get to the standard's syntax without a
great deal of thrashing.  Original patch by Hiroshi Saito, amended by me.
doc/src/sgml/queries.sgml
doc/src/sgml/ref/delete.sgml
doc/src/sgml/ref/insert.sgml
doc/src/sgml/ref/select.sgml
doc/src/sgml/ref/select_into.sgml
doc/src/sgml/ref/update.sgml
doc/src/sgml/sql.sgml
src/backend/parser/gram.y
src/interfaces/ecpg/preproc/preproc.y
src/test/regress/expected/plpgsql.out