Re: BUG #19763: ManualBug2 NULL pointer dereference in make_build_data via examine_expression bypass of lookup_var_a

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: shihao zhong <zhong950419(at)gmail(dot)com>
Cc: Tomas Vondra <tomas(at)vondra(dot)me>, 1217816127(at)qq(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org, PG Bug reporting form <noreply(at)postgresql(dot)org>
Subject: Re: BUG #19763: ManualBug2 NULL pointer dereference in make_build_data via examine_expression bypass of lookup_var_a
Date: 2026-10-21 05:56:41
Message-ID: athUGX48bWpMkGjP@paquier.xyz
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Tue, Oct 20, 2026 at 08:29:28PM -0400, shihao zhong wrote:
> v2 checks the result there too and skips the object with the same
> warning. I did not add a test for it, since it needs another fancy
> callback.

Fancy typanalyze callbacks are what make the DNA of the test module
test_custom_types. I'd suggest to add a test for it. Your previous
duplicated test had little meaning. This would be a second test for a
separated code path, that acts as its own check.
--
Michael

In response to

Browse pgsql-bugs by date

  From Date Subject
Previous Message Staroverov Ilja 2026-10-21 04:40:22 Re: BUG #19644: byteaout, float8out and float4out are marked IMMUTABLE but depend on GUCs