Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit67fe107

Browse files
committed
Re-add dblink_current_query() for backward compatibility.
1 parentceb5db6 commit67fe107

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+
DROPFUNCTION dblink_current_query ();
7+
68
DROPFUNCTION dblink_build_sql_update (text, int2vector, int4, _text, _text);
79

810
DROPFUNCTION dblink_build_sql_delete (text, int2vector, int4, _text);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp