postgres_fdw: Refactor deparsing code for locking clauses.
Robert Haas <rhaas@postgresql.org>
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.
Files
| Path | Change | +/− |
|---|---|---|
| contrib/postgres_fdw/deparse.c | modified | +60 −0 |
| contrib/postgres_fdw/postgres_fdw.c | modified | +2 −49 |
| contrib/postgres_fdw/postgres_fdw.h | modified | +2 −0 |