mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Restore dblink_current_query() to being a C-language function, so as to not
create an ABI break between 8.3 and 8.4. It is still just a wrapper around the built-in current_query() function, but at a different implementation level. Per my proposal. Note: this change doesn't break 8.4beta installations, since their SQL-language definition of the function still works fine.
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
* Darko Prenosil <Darko.Prenosil@finteh.hr>
|
||||
* Shridhar Daithankar <shridhar_daithankar@persistent.co.in>
|
||||
*
|
||||
* $PostgreSQL: pgsql/contrib/dblink/dblink.c,v 1.80 2009/06/09 16:35:36 joe Exp $
|
||||
* $PostgreSQL: pgsql/contrib/dblink/dblink.c,v 1.81 2009/06/09 17:41:02 tgl Exp $
|
||||
* Copyright (c) 2001-2009, PostgreSQL Global Development Group
|
||||
* ALL RIGHTS RESERVED;
|
||||
*
|
||||
@ -1622,6 +1622,20 @@ dblink_build_sql_update(PG_FUNCTION_ARGS)
|
||||
PG_RETURN_TEXT_P(cstring_to_text(sql));
|
||||
}
|
||||
|
||||
/*
|
||||
* dblink_current_query
|
||||
* return the current query string
|
||||
* to allow its use in (among other things)
|
||||
* rewrite rules
|
||||
*/
|
||||
PG_FUNCTION_INFO_V1(dblink_current_query);
|
||||
Datum
|
||||
dblink_current_query(PG_FUNCTION_ARGS)
|
||||
{
|
||||
/* This is now just an alias for the built-in function current_query() */
|
||||
PG_RETURN_DATUM(current_query(fcinfo));
|
||||
}
|
||||
|
||||
/*************************************************************
|
||||
* internal functions
|
||||
*/
|
||||
|
Reference in New Issue
Block a user