Files
Tom Lane 5b5110ab52 Fix missed ReleaseVariableStats() in intarray's _int_matchsel().
Given a WHERE clause like "int[] @@ query_int" or "query_int ~~ int[]"
where the query_int side is a table column having statistics,
_int_matchsel() exited without remembering to free the statistics
tuple.  This would typically lead to warnings about cache refcount
leakage, like
  WARNING:  resource was not closed: cache pg_statistic (73), tuple 42/12 has count 1
It's been wrong since this code was added, in commit c6fbe6d6f.

Bug: #19492
Reported-by: Man Zeng <[email protected]>
Author: Man Zeng <[email protected]>
Reviewed-by: Tom Lane <[email protected]>
Discussion: https://postgr.es/m/[email protected]
Backpatch-through: 14
2026-05-25 18:15:49 -04:00
..
2026-01-01 13:24:10 -05:00
2026-01-22 12:44:07 +01:00
2025-02-18 11:04:55 +07:00
2025-02-18 11:04:55 +07:00
2026-01-01 13:24:10 -05:00