]> granicus.if.org Git - postgresql/commit
postgres_fdw: More preliminary refactoring for upcoming join pushdown.
authorRobert Haas <rhaas@postgresql.org>
Sat, 30 Jan 2016 15:32:38 +0000 (10:32 -0500)
committerRobert Haas <rhaas@postgresql.org>
Sat, 30 Jan 2016 15:32:38 +0000 (10:32 -0500)
commitcc592c48c58d9c1920f8e2063756dcbcce79e4dd
treeb3c640bb4c286ffc04bae290a6f84c24e4ee83bc
parent2251179e6ad3a865d2f55e1832fab34608fcce43
postgres_fdw: More preliminary refactoring for upcoming join pushdown.

The code that generates a complete SQL query for a given foreign relation
was repeated in two places, and they didn't quite agree: the EXPLAIN case
left out the locking clause.  Centralize the code so we get the same
behavior everywhere, and adjust calling conventions and which functions
are static vs. extern accordingly .  Centralize the code so we get the same
behavior everywhere, and adjust calling conventions and which functions
are static vs. extern accordingly.

Ashutosh Bapat, reviewed and slightly adjusted by me.
contrib/postgres_fdw/deparse.c
contrib/postgres_fdw/postgres_fdw.c
contrib/postgres_fdw/postgres_fdw.h