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)
commit445ce15702f701423a0fed3defe3a43662c7cd8d
treef2b79c75d8be22098f0f7c093127b133755de22a
parent12dcf7bb7552386c7a18d8a30b176718eb51c00e
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