From: Tom Lane Date: Thu, 18 Mar 2010 15:29:44 +0000 (+0000) Subject: Fix missing parentheses for current_query(), per bug #5378. X-Git-Tag: REL9_0_ALPHA5~78 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5f6285616d67e545d6a0df2a55d98046fca17982;p=postgresql Fix missing parentheses for current_query(), per bug #5378. Also make a couple other minor editorial improvements. --- diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index f85d15a862..411aff0aad 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -1,4 +1,4 @@ - + Functions and Operators @@ -11512,7 +11512,7 @@ postgres=# select * from unnest2(array[[1,2],[3,4]]); current_schemas(boolean) name[] - names of schemas in search path optionally including implicit schemas + names of schemas in search path, optionally including implicit schemas @@ -11522,11 +11522,11 @@ postgres=# select * from unnest2(array[[1,2],[3,4]]); - current_query + current_query() text text of the currently executing query, as submitted by the client (might contain more than one statement) - + @@ -11612,6 +11612,17 @@ postgres=# select * from unnest2(array[[1,2],[3,4]]); + + + current_catalog, current_schema, + current_user, session_user, + and user have special syntactic status + in SQL: they must be called without trailing + parentheses. (In PostgreSQL, parentheses can optionally be used with + current_schema, but not with the others.) + + + user current @@ -11657,17 +11668,6 @@ postgres=# select * from unnest2(array[[1,2],[3,4]]); the current user is the effective user. - - - 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). - - - current_schema returns the name of the schema that is first in the search path (or a null value if the search path is