Re:BUG #19492: intarray: fix variable stats leak in _int_matchsel

zengman <zengman@halodbtech.com>

From: zengman <zengman@halodbtech.com>
To: 曾满 <zengman@halodbtech.com>, pgsql-bugs <pgsql-bugs@lists.postgresql.org>
Date: 2026-05-24T05:15:43Z
Lists: pgsql-bugs

Attachments

Patch attached. Also added a test case that exercises this code path
by creating a text operator with _int_matchsel as the restriction
estimator.

Regards,
Man Zeng

Commits

  1. Fix missed ReleaseVariableStats() in intarray's _int_matchsel().