mirror of
https://github.com/postgres/postgres.git
synced 2025-06-11 20:28:21 +03:00
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.
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user