mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-03 08:00:21 +08:00
Fix ginint4_queryextract() to actually do what it was intended to do for an
unsatisfiable query, such as indexcol && empty_array. It should return -1 to tell GIN no scan is required; but silly typo disabled the logic for that, resulting in unnecessary "GIN indexes do not support whole-index scans" error. Per bug report from Jeff Trout. Back-patch to 8.3 where the logic was introduced.
This commit is contained in:
parent
e429448f33
commit
d1bc3525c0
@ -57,7 +57,7 @@ ginint4_queryextract(PG_FUNCTION_ARGS)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nentries == 0)
|
if (*nentries == 0)
|
||||||
{
|
{
|
||||||
switch (strategy)
|
switch (strategy)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user