git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 37c5486) | patch
Refactor pull_var_clause's API to make it less tedious to extend.
2016年3月10日 20:52:58 +0000 (15:52 -0500)
2016年3月10日 20:53:07 +0000 (15:53 -0500)
commit 364a9f47ab363250f62dd2c381c4da435283725a
Refactor pull_var_clause's API to make it less tedious to extend.

In commit 1d97c19a0f748e94 and later c1d9579dd8bf3c92, 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.
20 files changed:
contrib/postgres_fdw/deparse.c diff | blob | blame | history
src/backend/catalog/heap.c diff | blob | blame | history
src/backend/commands/trigger.c diff | blob | blame | history
src/backend/optimizer/path/allpaths.c diff | blob | blame | history
src/backend/optimizer/path/equivclass.c diff | blob | blame | history
src/backend/optimizer/plan/analyzejoins.c diff | blob | blame | history
src/backend/optimizer/plan/createplan.c diff | blob | blame | history
src/backend/optimizer/plan/initsplan.c diff | blob | blame | history
src/backend/optimizer/plan/planner.c diff | blob | blame | history
src/backend/optimizer/plan/setrefs.c diff | blob | blame | history
src/backend/optimizer/prep/prepjointree.c diff | blob | blame | history
src/backend/optimizer/prep/preptlist.c diff | blob | blame | history
src/backend/optimizer/util/placeholder.c diff | blob | blame | history
src/backend/optimizer/util/tlist.c diff | blob | blame | history
src/backend/optimizer/util/var.c diff | blob | blame | history
src/backend/parser/parse_agg.c diff | blob | blame | history
src/backend/parser/parse_clause.c diff | blob | blame | history
src/backend/utils/adt/selfuncs.c diff | blob | blame | history
src/include/optimizer/tlist.h diff | blob | blame | history
src/include/optimizer/var.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /