mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
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
This commit is contained in:
@ -22,13 +22,6 @@ INSERT INTO foo VALUES (7,'h','{"a7","b7","c7"}');
|
||||
INSERT INTO foo VALUES (8,'i','{"a8","b8","c8"}');
|
||||
INSERT INTO foo VALUES (9,'j','{"a9","b9","c9"}');
|
||||
-- misc utilities
|
||||
-- show the currently executing query
|
||||
SELECT 'hello' AS hello, dblink_current_query() AS query;
|
||||
hello | query
|
||||
-------+-----------------------------------------------------------
|
||||
hello | SELECT 'hello' AS hello, dblink_current_query() AS query;
|
||||
(1 row)
|
||||
|
||||
-- list the primary key fields
|
||||
SELECT *
|
||||
FROM dblink_get_pkey('foo');
|
||||
|
Reference in New Issue
Block a user