Deprecate use of GLOBAL and LOCAL in temp table creation.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 13 Jun 2012 21:48:42 +0000 (17:48 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 13 Jun 2012 21:48:42 +0000 (17:48 -0400)
commitc3bc76bdb0ac600e6b4d1e594e1a077c1efc5154
treeca6f13e7a4abe94d6edd10efb89c8961be609bd8
parent93f4d7f806613d28842f956a84f31cc41d825503
Deprecate use of GLOBAL and LOCAL in temp table creation.

Aside from adjusting the documentation to say that these are deprecated,
we now report a warning (not an error) for use of GLOBAL, since it seems
fairly likely that we might change that to request SQL-spec-compliant temp
table behavior in the foreseeable future.  Although our handling of LOCAL
is equally nonstandard, there is no evident interest in ever implementing
SQL modules, and furthermore some other products interpret LOCAL as
behaving the same way we do.  So no expectation of change and no warning
for LOCAL; but it still seems a good idea to deprecate writing it.

Noah Misch
doc/src/sgml/ref/create_table.sgml
doc/src/sgml/ref/create_table_as.sgml
src/backend/parser/gram.y