postgresql/src
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
..
backend Avoid uselessly building a duplicate of the original clause in trivial cases 2007-11-23 19:57:44 +00:00
bin Add more comments about thousands separator handling. 2007-11-22 17:51:39 +00:00
include Actually ... it's pretty silly that parse_oper.c doesn't set up the 2007-11-22 19:40:25 +00:00
interfaces Fix build of libpq for Borland CC. 2007-11-21 23:03:44 +00:00
makefiles Teach pgxs.mk and Install.pm how to install files from a contrib module 2007-10-16 16:00:00 +00:00
pl Fix buggy usage of vsnprintf in PL/Python by removing it altogether, instead 2007-11-23 01:46:34 +00:00
port pgindent run for 8.3. 2007-11-15 21:14:46 +00:00
template Use SYSV semaphores rather than POSIX on Darwin >= 6.0 (i.e., OS X 10.2 2007-09-26 00:32:46 +00:00
test Change descriptions of entity and tag objects to "XML entity" and "XML tag". 2007-11-20 02:25:22 +00:00
timezone Re-run pgindent with updated list of typedefs. (Updated README should 2007-11-15 22:25:18 +00:00
tools Better guard token used by pgindent. 2007-11-16 01:25:15 +00:00
tutorial Fix PGXS conventions so that extensions can be built against Postgres 2007-06-26 22:05:04 +00:00
bcc32.mak Remove old-style win32 client-only visual c++ build infrastructure for everything except 2007-03-05 14:18:38 +00:00
DEVELOPERS Testing commit stuff 2006-07-10 15:50:02 +00:00
Makefile Tsearch2 functionality migrates to core. The bulk of this work is by 2007-08-21 01:11:32 +00:00
Makefile.global.in I find that an out-of-the-box installation of OSSP uuid 1.6.0 installs 2007-11-13 00:13:19 +00:00
Makefile.shlib Change $(CC) to $(COMPILER) on Solaris gcc so -m64 is passed into the 2007-02-20 22:45:57 +00:00
nls-global.mk When merging PO files, take into consideration translations in other PO 2006-04-05 13:40:15 +00:00
win32.mak Update supported standalone VC++ version to 7.1+ only, and fix 2007-08-03 10:47:11 +00:00