[YSQL] Catalog cache misses for <> operator on pkey/indexed columns #26311
Labels
area/ysql
Yugabyte SQL (YSQL)
kind/bug
This issue is a bug
priority/medium
Medium priority issue
status/awaiting-triage
Issue awaiting triage
Jira Link: DB-15658
Description
lsm does not support pushing down the
<>
(or!=
) operator but the planner will try to check if it exists inpg_amop
. Also looks like we do not enable negative caching (caching for not-found lookups) for pg_amop so this will be checked each time the planner tries to plan this query.Mitigations could be to use prepared statements to avoid re-planning each time or rewriting the query to avoid that operator (e.g.
k > ? OR k < ?
).Minimal repro:
Local output:
Issue Type
kind/bug
Warning: Please confirm that this issue does not contain any sensitive information
The text was updated successfully, but these errors were encountered: