diff options
author | Robert Haas <rhaas@postgresql.org> | 2016-01-28 16:44:01 -0500 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2016-01-28 16:44:01 -0500 |
commit | b88ef201d46e6519b5e0589358c952a4c0f5bf0f (patch) | |
tree | 4a686d632d3db12e47e9cffbf53b0f108ce697cf /contrib/postgres_fdw/postgres_fdw.h | |
parent | fbe5a3fb73102c2cfec11aaaa4a67943f4474383 (diff) | |
download | postgresql-b88ef201d46e6519b5e0589358c952a4c0f5bf0f.tar.gz postgresql-b88ef201d46e6519b5e0589358c952a4c0f5bf0f.zip |
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.
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.h')
-rw-r--r-- | contrib/postgres_fdw/postgres_fdw.h | 2 |
1 files changed, 2 insertions, 0 deletions
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, |