postgresql/src/backend
Tom Lane 92c0bf0960 Avoid uselessly building a duplicate of the original clause in trivial cases
where the EquivalenceClass machinery is unable to deduce anything more from a
simple "var = const" qual clause.  There are probably some more cases where
this could be done, but this seems to take care of most of the added overhead
for simple queries.  Per gripe from Guillaume Smet.

In passing, fix a problem that was exposed by this change:
reconsider_outer_join_clause and friends were passing the wrong relids to
build_implied_join_equality, resulting in RestrictInfos with the wrong
required_relids.  This mistake was masked in typical cases since the bogus
RestrictInfos would never have escaped from the EquivalenceClass machinery,
but I think there might be corner cases involving "broken" ECs where there
would have been a visible failure even without the new optimization.  In any
case the code was certainly not operating as intended.
2007-11-23 19:57:44 +00:00
..
access Improve GIN index build's tracking of memory usage by using 2007-11-16 21:55:59 +00:00
bootstrap pgindent run for 8.3. 2007-11-15 21:14:46 +00:00
catalog Re-run pgindent with updated list of typedefs. (Updated README should 2007-11-15 22:25:18 +00:00
commands Small comment spacing improvement. 2007-11-16 01:51:22 +00:00
executor Re-run pgindent with updated list of typedefs. (Updated README should 2007-11-15 22:25:18 +00:00
lib pgindent run for 8.3. 2007-11-15 21:14:46 +00:00
libpq pgindent run for 8.3. 2007-11-15 21:14:46 +00:00
main pgindent run for 8.3. 2007-11-15 21:14:46 +00:00
nodes Re-run pgindent with updated list of typedefs. (Updated README should 2007-11-15 22:25:18 +00:00
optimizer Avoid uselessly building a duplicate of the original clause in trivial cases 2007-11-23 19:57:44 +00:00
parser Actually ... it's pretty silly that parse_oper.c doesn't set up the 2007-11-22 19:40:25 +00:00
po Translation updates 2007-11-15 20:38:15 +00:00
port Re-run pgindent with updated list of typedefs. (Updated README should 2007-11-15 22:25:18 +00:00
postmaster Re-run pgindent with updated list of typedefs. (Updated README should 2007-11-15 22:25:18 +00:00
regex pgindent run for 8.3. 2007-11-15 21:14:46 +00:00
rewrite Small comment spacing improvement. 2007-11-16 01:51:22 +00:00
snowball Re-run pgindent with updated list of typedefs. (Updated README should 2007-11-15 22:25:18 +00:00
storage Fix stupid typo in recently-added code :-( 2007-11-16 00:57:55 +00:00
tcop Re-run pgindent with updated list of typedefs. (Updated README should 2007-11-15 22:25:18 +00:00
tsearch Change descriptions of entity and tag objects to "XML entity" and "XML tag". 2007-11-20 02:25:22 +00:00
utils Fix white space in MONEY type code. Rename 'comma' to more generic 2007-11-23 19:54:39 +00:00
Makefile Tsearch2 functionality migrates to core. The bulk of this work is by 2007-08-21 01:11:32 +00:00
nls.mk Add _ to gettext triggers. Must have been forgotten here when it was introduced. 2005-10-04 11:14:03 +00:00