1
- <!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.509 2010/03/16 16:03:24 sriggs Exp $ -->
1
+ <!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.510 2010/03/18 15:29:44 tgl Exp $ -->
2
2
3
3
<chapter id="functions">
4
4
<title>Functions and Operators</title>
@@ -11512,7 +11512,7 @@ postgres=# select * from unnest2(array[[1,2],[3,4]]);
11512
11512
<row>
11513
11513
<entry><literal><function>current_schemas</function>(<type>boolean</type>)</literal></entry>
11514
11514
<entry><type>name[]</type></entry>
11515
- <entry>names of schemas in search path optionally including implicit schemas</entry>
11515
+ <entry>names of schemas in search path, optionally including implicit schemas</entry>
11516
11516
</row>
11517
11517
11518
11518
<row>
@@ -11522,11 +11522,11 @@ postgres=# select * from unnest2(array[[1,2],[3,4]]);
11522
11522
</row>
11523
11523
11524
11524
<row>
11525
- <entry><literal><function>current_query</function></literal></entry>
11525
+ <entry><literal><function>current_query</function>() </literal></entry>
11526
11526
<entry><type>text</type></entry>
11527
11527
<entry>text of the currently executing query, as submitted
11528
11528
by the client (might contain more than one statement)</entry>
11529
- </row>
11529
+ </row>
11530
11530
11531
11531
<row>
11532
11532
<!-- See also the entry for this in monitoring.sgml -->
@@ -11612,6 +11612,17 @@ postgres=# select * from unnest2(array[[1,2],[3,4]]);
11612
11612
</tgroup>
11613
11613
</table>
11614
11614
11615
+ <note>
11616
+ <para>
11617
+ <function>current_catalog</function>, <function>current_schema</function>,
11618
+ <function>current_user</function>, <function>session_user</function>,
11619
+ and <function>user</function> have special syntactic status
11620
+ in <acronym>SQL</acronym>: they must be called without trailing
11621
+ parentheses. (In PostgreSQL, parentheses can optionally be used with
11622
+ <function>current_schema</function>, but not with the others.)
11623
+ </para>
11624
+ </note>
11625
+
11615
11626
<indexterm>
11616
11627
<primary>user</primary>
11617
11628
<secondary>current</secondary>
@@ -11657,17 +11668,6 @@ postgres=# select * from unnest2(array[[1,2],[3,4]]);
11657
11668
the current user is the <quote>effective user</quote>.
11658
11669
</para>
11659
11670
11660
- <note>
11661
- <para>
11662
- <function>current_catalog</function>, <function>current_schema</function>,
11663
- <function>current_user</function>, <function>session_user</function>,
11664
- and <function>user</function> have special syntactic status
11665
- in <acronym>SQL</acronym>: they must be called without trailing
11666
- parentheses (optional in PostgreSQL in the case
11667
- of <function>current_schema</function>).
11668
- </para>
11669
- </note>
11670
-
11671
11671
<para>
11672
11672
<function>current_schema</function> returns the name of the schema that is
11673
11673
first in the search path (or a null value if the search path is
0 commit comments