aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.h
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2016-04-21 10:46:09 -0400
committerRobert Haas <rhaas@postgresql.org>2016-04-21 10:49:09 -0400
commitf039eaac7131ef2a4cf63a10cf98486f8bcd09d2 (patch)
tree7cf01d74aa16537ce41f72f9c796cc0e896270c6 /contrib/postgres_fdw/postgres_fdw.h
parent11e178d0dc4bc2328ae4759090b3c48b07023fab (diff)
downloadpostgresql-f039eaac7131ef2a4cf63a10cf98486f8bcd09d2.tar.gz
postgresql-f039eaac7131ef2a4cf63a10cf98486f8bcd09d2.zip
Allow queries submitted by postgres_fdw to be canceled.
This fixes a problem which is not new, but with the advent of direct foreign table modification in 0bf3ae88af330496517722e391e7c975e6bad219, it's somewhat more likely to be annoying than previously. So, arrange for a local query cancelation to propagate to the remote side. Michael Paquier, reviewed by Etsuro Fujita. Original report by Thom Brown.
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.h')
-rw-r--r--contrib/postgres_fdw/postgres_fdw.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/postgres_fdw/postgres_fdw.h b/contrib/postgres_fdw/postgres_fdw.h
index 3a11d994d54..574b07d16c8 100644
--- a/contrib/postgres_fdw/postgres_fdw.h
+++ b/contrib/postgres_fdw/postgres_fdw.h
@@ -103,6 +103,8 @@ extern PGconn *GetConnection(UserMapping *user, bool will_prep_stmt);
extern void ReleaseConnection(PGconn *conn);
extern unsigned int GetCursorNumber(PGconn *conn);
extern unsigned int GetPrepStmtNumber(PGconn *conn);
+extern PGresult *pgfdw_get_result(PGconn *conn, const char *query);
+extern PGresult *pgfdw_exec_query(PGconn *conn, const char *query);
extern void pgfdw_report_error(int elevel, PGresult *res, PGconn *conn,
bool clear, const char *sql);