diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2011-02-16 19:24:45 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2011-02-16 19:24:45 -0500 |
commit | a2095f7fb5a57ea1794f25d029756d9a140fd429 (patch) | |
tree | 88d2127208f79e35b3b4237b00b54f41f9ae9164 /src/backend/executor/functions.c | |
parent | 6595dd04d136d5c97ae05fc580572c8f00042143 (diff) | |
download | postgresql-a2095f7fb5a57ea1794f25d029756d9a140fd429.tar.gz postgresql-a2095f7fb5a57ea1794f25d029756d9a140fd429.zip |
Fix bogus test for hypothetical indexes in get_actual_variable_range().
That function was supposing that indexoid == 0 for a hypothetical index,
but that is not likely to be true in any non-toy implementation of an index
adviser, since assigning a fake OID is the only way to know at EXPLAIN time
which hypothetical index got selected. Fix by adding a flag to
IndexOptInfo to mark hypothetical indexes. Back-patch to 9.0 where
get_actual_variable_range() was added.
Gurjeet Singh
Diffstat (limited to 'src/backend/executor/functions.c')
0 files changed, 0 insertions, 0 deletions