mirror of
https://github.com/postgres/postgres.git
synced 2025-04-27 22:56:53 +03:00
Revise the header comment for match_clause_to_indexcol()
Since d4378c0005e6, match_clause_to_indexcol() doesn't always return NULL for an OR clause. This commit reflects that in the function header comment. Reported-by: Pavel Borisov <pashkin.elfe@gmail.com>
This commit is contained in:
parent
f3e4aeb744
commit
23ef119f58
@ -2639,8 +2639,9 @@ match_clause_to_index(PlannerInfo *root,
|
|||||||
* Returns an IndexClause if the clause can be used with this index key,
|
* Returns an IndexClause if the clause can be used with this index key,
|
||||||
* or NULL if not.
|
* or NULL if not.
|
||||||
*
|
*
|
||||||
* NOTE: returns NULL if clause is an OR or AND clause; it is the
|
* NOTE: This routine always returns NULL if the clause is an AND clause.
|
||||||
* responsibility of higher-level routines to cope with those.
|
* Higher-level routines deal with OR and AND clauses. OR clause can be
|
||||||
|
* matched as a whole by match_orclause_to_indexcol() though.
|
||||||
*/
|
*/
|
||||||
static IndexClause *
|
static IndexClause *
|
||||||
match_clause_to_indexcol(PlannerInfo *root,
|
match_clause_to_indexcol(PlannerInfo *root,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user