Re:BUG #19492: intarray: fix variable stats leak in _int_matchsel
Started by zengman16 days ago2 messagesbugs
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
Attachments:
0001-Fix-variable-stats-leak-in-_int_matchsel-early-retur.patchapplication/octet-stream; charset=gb18030; name=0001-Fix-variable-stats-leak-in-_int_matchsel-early-retur.patchDownload+44-1
Import Notes
Reply to msg id not found: 19492-ddcd0e22399ef85a@postgresql.orgReference msg id not found: 19492-ddcd0e22399ef85a@postgresql.org
Re: BUG #19492: intarray: fix variable stats leak in _int_matchsel
"=?gb18030?B?emVuZ21hbg==?=" <zengman@halodbtech.com> writes:
Patch attached. Also added a test case that exercises this code path
by creating a text operator with _int_matchsel as the restriction
estimator.
Good catch, pushed. I didn't bother with the test case though ---
none of the other early exits in that function have test cases,
and I don't see why this one is any more fragile than the others.
regards, tom lane