diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 1999-07-27 03:51:11 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 1999-07-27 03:51:11 +0000 |
commit | 9e7e29e6c9dd386a56ab23f419bc358f630cf768 (patch) | |
tree | 43859920134e180b991a001e35173a8a715da440 /src/backend/parser/parse_clause.c | |
parent | 434df3fb7a545637610f02c5491be1d6ce81069f (diff) | |
download | postgresql-9e7e29e6c9dd386a56ab23f419bc358f630cf768.tar.gz postgresql-9e7e29e6c9dd386a56ab23f419bc358f630cf768.zip |
First cut at doing LIKE/regex indexing optimization in
optimizer rather than parser. This has many advantages, such as not
getting fooled by chance uses of operator names ~ and ~~ (the operators
are identified by OID now), and not creating useless comparison operations
in contexts where the comparisons will not actually be used as indexquals.
The new code also recognizes exact-match LIKE and regex patterns, and
produces an = indexqual instead of >= and <=.
This change does NOT fix the problem with non-ASCII locales: the code
still doesn't know how to generate an upper bound indexqual for non-ASCII
collation order. But it's no worse than before, just the same deficiency
in a different place...
Also, dike out loc_restrictinfo fields in Plan nodes. These were doing
nothing useful in the absence of 'expensive functions' optimization,
and they took a considerable amount of processing to fill in.
Diffstat (limited to 'src/backend/parser/parse_clause.c')
0 files changed, 0 insertions, 0 deletions