From b88ef201d46e6519b5e0589358c952a4c0f5bf0f Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Thu, 28 Jan 2016 16:44:01 -0500 Subject: postgres_fdw: Refactor deparsing code for locking clauses. The upcoming patch to allow join pushdown in postgres_fdw needs to use this code multiple times, which requires moving it to deparse.c. That seems like a good idea anyway, so do that now both on general principle and to simplify the future patch. Inspired by a patch by Shigeru Hanada and Ashutosh Bapat, but I did it a little differently than what that patch did. --- contrib/postgres_fdw/postgres_fdw.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'contrib/postgres_fdw/postgres_fdw.h') diff --git a/contrib/postgres_fdw/postgres_fdw.h b/contrib/postgres_fdw/postgres_fdw.h index 59e9f60c04b..0d8c271505c 100644 --- a/contrib/postgres_fdw/postgres_fdw.h +++ b/contrib/postgres_fdw/postgres_fdw.h @@ -88,6 +88,8 @@ extern void deparseSelectSql(StringInfo buf, RelOptInfo *baserel, Bitmapset *attrs_used, List **retrieved_attrs); +extern void deparseLockingClause(StringInfo buf, + PlannerInfo *root, RelOptInfo *rel); extern void appendWhereClause(StringInfo buf, PlannerInfo *root, RelOptInfo *baserel, -- cgit v1.2.3