Skip to content

Commit 67fe107

Browse files
committed
Re-add dblink_current_query() for backward compatibility.
1 parent ceb5db6 commit 67fe107

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

contrib/dblink/dblink.sql.in

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/contrib/dblink/dblink.sql.in,v 1.15 2008/04/04 16:57:21 momjian Exp $ */
1+
/* $PostgreSQL: pgsql/contrib/dblink/dblink.sql.in,v 1.16 2008/04/05 02:26:14 momjian Exp $ */
22

33
-- Adjust this setting to control where the objects get created.
44
SET search_path = public;
@@ -163,6 +163,11 @@ RETURNS text
163163
AS 'MODULE_PATHNAME','dblink_build_sql_update'
164164
LANGUAGE C STRICT;
165165

166+
CREATE OR REPLACE FUNCTION dblink_current_query ()
167+
RETURNS text
168+
AS 'SELECT current_query()'
169+
LANGUAGE SQL;
170+
166171
CREATE OR REPLACE FUNCTION dblink_send_query(text, text)
167172
RETURNS int4
168173
AS 'MODULE_PATHNAME', 'dblink_send_query'

contrib/dblink/uninstall_dblink.sql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
/* $PostgreSQL: pgsql/contrib/dblink/uninstall_dblink.sql,v 1.6 2008/04/04 16:57:21 momjian Exp $ */
1+
/* $PostgreSQL: pgsql/contrib/dblink/uninstall_dblink.sql,v 1.7 2008/04/05 02:26:14 momjian Exp $ */
22

33
-- Adjust this setting to control where the objects get dropped.
44
SET search_path = public;
55

6+
DROP FUNCTION dblink_current_query ();
7+
68
DROP FUNCTION dblink_build_sql_update (text, int2vector, int4, _text, _text);
79

810
DROP FUNCTION dblink_build_sql_delete (text, int2vector, int4, _text);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy