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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 07341a2) | patch
Rethink representation of PathTargets.
2016年3月14日 20:59:59 +0000 (16:59 -0400)
2016年3月14日 20:59:59 +0000 (16:59 -0400)
commit 307c78852f516042cebacaed411a0391bfeb2129
Rethink representation of PathTargets.

In commit 19a541143a09c067 I did not make PathTarget a subtype of Node,
and embedded a RelOptInfo's reltarget directly into it rather than having
a separately-allocated Node. In hindsight that was misguided
micro-optimization, enabled by the fact that at that point we didn't have
any Paths with custom PathTargets. Now that PathTarget processing has
been fleshed out some more, it's easier to see that it's better to have
PathTarget as an indepedent Node type, even if it does cost us one more
palloc to create a RelOptInfo. So change it while we still can.

This commit just changes the representation, without doing anything more
interesting than that.
18 files changed:
contrib/file_fdw/file_fdw.c diff | blob | blame | history
contrib/postgres_fdw/deparse.c diff | blob | blame | history
contrib/postgres_fdw/postgres_fdw.c diff | blob | blame | history
doc/src/sgml/fdwhandler.sgml diff | blob | blame | history
src/backend/nodes/outfuncs.c diff | blob | blame | history
src/backend/optimizer/path/allpaths.c diff | blob | blame | history
src/backend/optimizer/path/costsize.c diff | blob | blame | history
src/backend/optimizer/path/indxpath.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/planmain.c diff | blob | blame | history
src/backend/optimizer/plan/planner.c diff | blob | blame | history
src/backend/optimizer/util/pathnode.c diff | blob | blame | history
src/backend/optimizer/util/placeholder.c diff | blob | blame | history
src/backend/optimizer/util/relnode.c diff | blob | blame | history
src/backend/optimizer/util/tlist.c diff | blob | blame | history
src/include/nodes/nodes.h diff | blob | blame | history
src/include/nodes/relation.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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