postgresql/contrib/postgres_fdw
Tom Lane 364a9f47ab Refactor pull_var_clause's API to make it less tedious to extend.
In commit 1d97c19a0f and later c1d9579dd8, we extended
pull_var_clause's API by adding enum-type arguments.  That's sort of a pain
to maintain, though, because it means every time we add a new behavior we
must touch every last one of the call sites, even if there's a reasonable
default behavior that most of them could use.  Let's switch over to using a
bitmask of flags, instead; that seems more maintainable and might save a
nanosecond or two as well.  This commit changes no behavior in itself,
though I'm going to follow it up with one that does add a new behavior.

In passing, remove flatten_tlist(), which has not been used since 9.1
and would otherwise need the same API changes.

Removing these enums means that optimizer/tlist.h no longer needs to
depend on optimizer/var.h.  Changing that caused a number of C files to
need addition of #include "optimizer/var.h" (probably we can thank old
runs of pgrminclude for that); but on balance it seems like a good change
anyway.
2016-03-10 15:53:07 -05:00
..
expected postgres_fdw: Consider foreign joining and foreign sorting together. 2016-03-09 10:51:49 -05:00
sql postgres_fdw: Consider foreign joining and foreign sorting together. 2016-03-09 10:51:49 -05:00
.gitignore Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
Makefile Allow postgres_fdw to ship extension funcs/operators for remote execution. 2015-11-03 18:42:18 -05:00
connection.c Use %u not %d to print OIDs. 2016-02-08 11:06:23 -05:00
deparse.c Refactor pull_var_clause's API to make it less tedious to extend. 2016-03-10 15:53:07 -05:00
option.c postgres_fdw: Allow fetch_size to be set per-table or per-server. 2016-02-03 09:07:35 -05:00
postgres_fdw--1.0.sql Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
postgres_fdw.c postgres_fdw: Consider foreign joining and foreign sorting together. 2016-03-09 10:51:49 -05:00
postgres_fdw.control Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
postgres_fdw.h postgres_fdw: Push down joins to remote servers. 2016-02-09 14:00:50 -05:00
shippable.c Update copyright for 2016 2016-01-02 13:33:40 -05:00