postgresql/src/include
Tom Lane 26112850ec Fix OR-index-scan planner to recognize that a partial index is usable
for scanning one term of an OR clause if the index's predicate is implied
by that same OR clause term (possibly in conjunction with top-level WHERE
clauses).  Per recent example from Dawid Kuroczko,
http://archives.postgresql.org/pgsql-performance/2004-10/msg00095.php
Also, fix a very long-standing bug in index predicate testing, namely the
bizarre ordering of decomposition of predicate and restriction clauses.
AFAICS the correct way is to break down the predicate all the way, and
then for each component term see if you can prove it from the entire
restriction set.  The original coding had a purely-implementation-artifact
distinction between ANDing at the top level and ANDing below that, and
proceeded to get the decomposition order wrong everywhere below the top
level, with the result that even slightly complicated AND/OR predicates
could not be proven.  For instance, given
create index foop on foo(f2) where f1=42 or f1=1
    or (f1 = 11 and f2 = 55);
the old code would fail to match this index to the query
select * from foo where f1 = 11 and f2 = 55;
when it obviously ought to match.
2004-10-11 22:57:00 +00:00
..
access Restructure subtransaction handling to reduce resource consumption, 2004-09-16 16:58:44 +00:00
bootstrap Update copyright to 2004. 2004-08-29 04:13:13 +00:00
catalog Fix pg_indexes view so that it shows the index's tablespace not the 2004-10-11 17:24:41 +00:00
commands Adjust index locking rules as per my proposal of earlier today. You 2004-09-30 23:21:26 +00:00
executor Fix problems with SQL functions returning rowtypes that have dropped 2004-10-07 18:38:51 +00:00
lib Update copyright to 2004. 2004-08-29 04:13:13 +00:00
libpq Remove references to the ODBC driver from the main source tree. From Kris 2004-09-27 04:18:28 +00:00
mb Allow WIN1250 as server encoding. 2004-09-17 21:59:57 +00:00
nodes Fix problems with SQL functions returning rowtypes that have dropped 2004-10-07 18:38:51 +00:00
optimizer Fix OR-index-scan planner to recognize that a partial index is usable 2004-10-11 22:57:00 +00:00
parser Come to think of it, functions in FROM have the same syntactic restriction 2004-09-30 00:24:27 +00:00
port Fix improper defines for uid_t and gid_t. Had them backwards. 2004-10-06 17:47:53 +00:00
postmaster Replace log_filename_prefix with more general log_filename parameter, 2004-08-31 04:53:44 +00:00
regex Solve the 'Turkish problem' with undesirable locale behavior for case 2004-05-07 00:24:59 +00:00
rewrite Pgindent run for 8.0. 2004-08-29 05:07:03 +00:00
storage Document what the "rep; nop" x86 assembler sequence is actually equivalent 2004-10-06 23:41:59 +00:00
tcop Redesign query-snapshot timing so that volatile functions in READ COMMITTED 2004-09-13 20:10:13 +00:00
utils Adjust configuration-files GUC behavior as per my recent proposal. 2004-10-09 23:13:22 +00:00
c.h Add new macro as shorthand for MS VC and Borland C++: 2004-09-27 23:24:45 +00:00
fmgr.h Update copyright to 2004. 2004-08-29 04:13:13 +00:00
funcapi.h Pgindent run for 8.0. 2004-08-29 05:07:03 +00:00
getaddrinfo.h Add new macro as shorthand for MS VC and Borland C++: 2004-09-27 23:24:45 +00:00
getopt_long.h
Makefile Prevent install error message when doing cmp on empty tree. 2004-10-07 16:23:28 +00:00
miscadmin.h Adjust configuration-files GUC behavior as per my recent proposal. 2004-10-09 23:13:22 +00:00
pg_config_manual.h Minor cleanup. 2004-09-10 14:27:37 +00:00
pg_config.h.in Here is a patch to fix win32 ssl builds. Summary of changes: 2004-10-06 09:35:23 +00:00
pg_config.h.win32 Label CVS tip as 8.0devel instead of 7.5devel. Adjust various comments 2004-08-04 21:34:35 +00:00
pgstat.h Update copyright to 2004. 2004-08-29 04:13:13 +00:00
pgtime.h Pgindent run for 8.0. 2004-08-29 05:07:03 +00:00
port.h Use native Cygwin symlinks so tablespaces work on Win95/98/ME which 2004-10-11 22:50:48 +00:00
postgres_ext.h Pgindent run for 8.0. 2004-08-29 05:07:03 +00:00
postgres_fe.h Update copyright to 2004. 2004-08-29 04:13:13 +00:00
postgres.h Update copyright to 2004. 2004-08-29 04:13:13 +00:00
rusagestub.h Update copyright to 2004. 2004-08-29 04:13:13 +00:00
strdup.h Fix an obsolete file path mentioned in a comment. 2004-01-25 22:19:42 +00:00