Create a third option named "partition" for constraint_exclusion, and make it
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 7 Jan 2009 22:40:49 +0000 (22:40 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 7 Jan 2009 22:40:49 +0000 (22:40 +0000)
commit2984c7328fd06c44a368feb3837ba4ebe1066c53
treef130c30ada761b5f930482e3e62e2af596df898b
parent0057b708fd0af2783c756a4469ba131eabc32840
Create a third option named "partition" for constraint_exclusion, and make it
the default.  This setting enables constraint exclusion checks only for
appendrel members (ie, inheritance children and UNION ALL arms), which are
the cases in which constraint exclusion is most likely to be useful.  Avoiding
the overhead for simple queries that are unlikely to benefit should bring
the cost down to the point where this is a reasonable default setting.
Per today's discussion.
doc/src/sgml/config.sgml
doc/src/sgml/ddl.sgml
doc/src/sgml/textsearch.sgml
src/backend/optimizer/util/plancat.c
src/backend/utils/misc/guc.c
src/backend/utils/misc/postgresql.conf.sample
src/include/optimizer/cost.h