From f96928fde90697bd6eeda85a89225e31c0b5a16d Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Fri, 4 Apr 2008 16:57:21 +0000 Subject: Implement current_query(), that shows the currently executing query. At the same time remove dblink/dblink_current_query() as it is no longer necessary *BACKWARD COMPATIBILITY ISSUE* for dblink Tomas Doran --- doc/src/sgml/dblink.sgml | 45 +-------------------------------------------- doc/src/sgml/func.sgml | 8 +++++++- 2 files changed, 8 insertions(+), 45 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/dblink.sgml b/doc/src/sgml/dblink.sgml index b7195c683d1..dd0ea3ca2ba 100644 --- a/doc/src/sgml/dblink.sgml +++ b/doc/src/sgml/dblink.sgml @@ -1,4 +1,4 @@ - + dblink @@ -1346,49 +1346,6 @@ SELECT * - - - dblink_current_query - returns the current query string - - - - - dblink_current_query() returns text - - - - - Description - - - Returns the currently executing interactive command string of the - local database session, or NULL if it can't be determined. Note - that this function is not really related to dblink's - other functionality. It is provided since it is sometimes useful - in generating queries to be forwarded to remote databases. - - - - - Return Value - - Returns a copy of the currently executing query string. - - - - Example - - -test=# select dblink_current_query(); - dblink_current_query --------------------------------- - select dblink_current_query(); -(1 row) - - - - dblink_get_pkey diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 499faa0c92d..1fa0fc6c2a3 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -1,4 +1,4 @@ - + Functions and Operators @@ -10724,6 +10724,12 @@ select current_date + s.a as dates from generate_series(0,14,7) as s(a); user name of current execution context + + current_query + text + text of the currently executing query (might contain more than one statement) + + inet_client_addr() inet -- cgit v1.2.3