mirror of
https://github.com/postgres/postgres.git
synced 2025-06-29 10:41:53 +03:00
Fix missing parentheses for current_query(), per bug #5378.
Also make a couple other minor editorial improvements.
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.482.2.2 2009/11/24 19:21:04 petere Exp $ -->
|
<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.482.2.3 2010/03/18 15:29:51 tgl Exp $ -->
|
||||||
|
|
||||||
<chapter id="functions">
|
<chapter id="functions">
|
||||||
<title>Functions and Operators</title>
|
<title>Functions and Operators</title>
|
||||||
@ -11397,7 +11397,7 @@ postgres=# select * from unnest2(array[[1,2],[3,4]]);
|
|||||||
<row>
|
<row>
|
||||||
<entry><literal><function>current_schemas</function>(<type>boolean</type>)</literal></entry>
|
<entry><literal><function>current_schemas</function>(<type>boolean</type>)</literal></entry>
|
||||||
<entry><type>name[]</type></entry>
|
<entry><type>name[]</type></entry>
|
||||||
<entry>names of schemas in search path optionally including implicit schemas</entry>
|
<entry>names of schemas in search path, optionally including implicit schemas</entry>
|
||||||
</row>
|
</row>
|
||||||
|
|
||||||
<row>
|
<row>
|
||||||
@ -11407,11 +11407,11 @@ postgres=# select * from unnest2(array[[1,2],[3,4]]);
|
|||||||
</row>
|
</row>
|
||||||
|
|
||||||
<row>
|
<row>
|
||||||
<entry><literal><function>current_query</function></literal></entry>
|
<entry><literal><function>current_query</function>()</literal></entry>
|
||||||
<entry><type>text</type></entry>
|
<entry><type>text</type></entry>
|
||||||
<entry>text of the currently executing query, as submitted
|
<entry>text of the currently executing query, as submitted
|
||||||
by the client (might contain more than one statement)</entry>
|
by the client (might contain more than one statement)</entry>
|
||||||
</row>
|
</row>
|
||||||
|
|
||||||
<row>
|
<row>
|
||||||
<!-- See also the entry for this in monitoring.sgml -->
|
<!-- See also the entry for this in monitoring.sgml -->
|
||||||
@ -11491,6 +11491,17 @@ postgres=# select * from unnest2(array[[1,2],[3,4]]);
|
|||||||
</tgroup>
|
</tgroup>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
<note>
|
||||||
|
<para>
|
||||||
|
<function>current_catalog</function>, <function>current_schema</function>,
|
||||||
|
<function>current_user</function>, <function>session_user</function>,
|
||||||
|
and <function>user</function> have special syntactic status
|
||||||
|
in <acronym>SQL</acronym>: they must be called without trailing
|
||||||
|
parentheses. (In PostgreSQL, parentheses can optionally be used with
|
||||||
|
<function>current_schema</function>, but not with the others.)
|
||||||
|
</para>
|
||||||
|
</note>
|
||||||
|
|
||||||
<indexterm>
|
<indexterm>
|
||||||
<primary>user</primary>
|
<primary>user</primary>
|
||||||
<secondary>current</secondary>
|
<secondary>current</secondary>
|
||||||
@ -11536,17 +11547,6 @@ postgres=# select * from unnest2(array[[1,2],[3,4]]);
|
|||||||
the current user is the <quote>effective user</quote>.
|
the current user is the <quote>effective user</quote>.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<note>
|
|
||||||
<para>
|
|
||||||
<function>current_catalog</function>, <function>current_schema</function>,
|
|
||||||
<function>current_user</function>, <function>session_user</function>,
|
|
||||||
and <function>user</function> have special syntactic status
|
|
||||||
in <acronym>SQL</acronym>: they must be called without trailing
|
|
||||||
parentheses (optional in PostgreSQL in the case
|
|
||||||
of <function>current_schema</function>).
|
|
||||||
</para>
|
|
||||||
</note>
|
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
<function>current_schema</function> returns the name of the schema that is
|
<function>current_schema</function> returns the name of the schema that is
|
||||||
first in the search path (or a null value if the search path is
|
first in the search path (or a null value if the search path is
|
||||||
|
Reference in New Issue
Block a user