postgres_fdw: Refactor deparsing code for locking clauses.

Robert Haas <rhaas@postgresql.org>

Commit: b88ef201d46e6519b5e0589358c952a4c0f5bf0f
Author: Robert Haas <rhaas@postgresql.org>
Date: 2016-01-28T21:44:01Z
Releases: 9.6.0
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