1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

Have current_query() use ActivePortal->sourceText rather than

debug_query_string;  this allows current_query() to be more accurate;
docs updated;  per idea from Tom
This commit is contained in:
Bruce Momjian
2009-01-07 21:48:15 +00:00
parent deac9488d3
commit 12dcf7bb75
2 changed files with 6 additions and 8 deletions

View File

@ -1,4 +1,4 @@
<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.465 2008/12/31 00:08:33 tgl Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.466 2009/01/07 21:48:15 momjian Exp $ -->
<chapter id="functions">
<title>Functions and Operators</title>
@ -11343,7 +11343,8 @@ postgres=# select * from unnest2(array[[1,2],[3,4]]);
<row>
<entry><literal><function>current_query</function></literal></entry>
<entry><type>text</type></entry>
<entry>text of the currently executing query (might contain more than one statement)</entry>
<entry>text of the currently executing query (might match
client-supplied query or be internal query string)</entry>
</row>
<row>