From 0fec77ae88ea17555001dd7d6de16db27f742cbe Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Mon, 27 Oct 2008 09:37:47 +0000 Subject: SQL:2008 syntax CURRENT_CATALOG, CURRENT_SCHEMA, SET CATALOG, SET SCHEMA. --- doc/src/sgml/func.sgml | 26 ++++++++++++++++++++------ doc/src/sgml/ref/set.sgml | 13 ++++++++++++- 2 files changed, 32 insertions(+), 7 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 06ee6a0572f..df6045fc70e 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -1,4 +1,4 @@ - + Functions and Operators @@ -3184,7 +3184,8 @@ cast(-44 as bit(12)) 111111010100 function fails and returns null. To indicate the part of the pattern that should be returned on success, the pattern must contain two occurrences of the escape character followed by a double quote - ("). The text matching the portion of the pattern + ("). + The text matching the portion of the pattern between these markers is returned. @@ -10932,6 +10933,12 @@ postgres=# select * from unnest2(array[[1,2],[3,4]]); + + current_catalog + name + name of current database (called catalog in the SQL standard) + + current_database() name @@ -10939,7 +10946,7 @@ postgres=# select * from unnest2(array[[1,2],[3,4]]); - current_schema() + current_schema[()] name name of current schema @@ -11055,6 +11062,10 @@ postgres=# select * from unnest2(array[[1,2],[3,4]]); current + + current_catalog + + current_database @@ -11083,9 +11094,12 @@ postgres=# select * from unnest2(array[[1,2],[3,4]]); - current_user, session_user, and - user have special syntactic status in SQL: - they must be called without trailing parentheses. + current_catalog, current_schema, + current_user, session_user, + and user have special syntactic status + in SQL: they must be called without trailing + parentheses (optional in PostgreSQL in the case + of current_schema). diff --git a/doc/src/sgml/ref/set.sgml b/doc/src/sgml/ref/set.sgml index a31d1540526..9174d52decb 100644 --- a/doc/src/sgml/ref/set.sgml +++ b/doc/src/sgml/ref/set.sgml @@ -1,5 +1,5 @@ @@ -150,6 +150,17 @@ SET [ SESSION | LOCAL ] TIME ZONE { timezone + + SCHEMA + + + SET SCHEMA 'value' is an alias for + SET search_path TO value. Only one + schema can be specified using this syntax. + + + + NAMES -- cgit v1.2.3