From ac5fdea6877acd8d646feac8fae78675ad5e294d Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 4 May 2003 00:03:55 +0000 Subject: When a TIMESTAMP, TIME, or INTERVAL precision is specified larger than our implementation limits, do not issue an ERROR; instead issue a NOTICE and use the max supported value. Per pgsql-general discussion of 28-Apr, this is needed to allow easy porting from pre-7.3 releases where the limits were higher. Unrelated change in same area: accept GLOBAL TEMP/TEMPORARY as a synonym for TEMPORARY, as per pgsql-hackers discussion of 15-Apr. We previously rejected it, but that was based on a misreading of the spec --- SQL92's GLOBAL temp tables are really closer to what we have than their LOCAL ones. --- doc/src/sgml/ref/create_table.sgml | 20 +++++++++++++------- doc/src/sgml/ref/create_table_as.sgml | 6 +++--- 2 files changed, 16 insertions(+), 10 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/ref/create_table.sgml b/doc/src/sgml/ref/create_table.sgml index c95baad4175..9a29b645aae 100644 --- a/doc/src/sgml/ref/create_table.sgml +++ b/doc/src/sgml/ref/create_table.sgml @@ -1,5 +1,5 @@ @@ -16,7 +16,7 @@ PostgreSQL documentation -CREATE [ [ LOCAL ] { TEMPORARY | TEMP } ] TABLE table_name ( +CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } ] TABLE table_name ( { column_name data_type [ DEFAULT default_expr ] [ column_constraint [, ... ] ] | table_constraint } [, ... ] ) @@ -101,7 +101,7 @@ and table_constraint is: - [LOCAL] TEMPORARY or [LOCAL] TEMP + TEMPORARY or TEMP If specified, the table is created as a temporary table. @@ -115,7 +115,9 @@ and table_constraint is: - The LOCAL word is optional. But see under + Optionally, GLOBAL or LOCAL + can be written before TEMPORARY or TEMP. + This makes no difference in PostgreSQL, but see . @@ -195,7 +197,7 @@ and table_constraint is: @@ -16,7 +16,7 @@ PostgreSQL documentation -CREATE [ [ LOCAL ] { TEMPORARY | TEMP } ] TABLE table_name [ (column_name [, ...] ) ] +CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } ] TABLE table_name [ (column_name [, ...] ) ] AS query @@ -49,7 +49,7 @@ CREATE [ [ LOCAL ] { TEMPORARY | TEMP } ] TABLE table_name - [LOCAL] TEMPORARY or [LOCAL] TEMP + TEMPORARY or TEMP If specified, the table is created as a temporary table. -- cgit v1.2.3