pgsql: Make PLy_elog() use pg_integer_constant_p().

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Make PLy_elog() use pg_integer_constant_p().
Date: 2026-07-06 17:48:47
Message-ID: E1wgnR1-001ceX-3A@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Make PLy_elog() use pg_integer_constant_p().

This macro is supposed to work like ereport(). But when
59c2f03d1 adjusted ereport() to be more MSVC-friendly,
it missed updating this copy of the logic.

Discussion: https://postgr.es/m/754534.1783264708@sss.pgh.pa.us
Backpatch-through: 19

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/431896a84eb127b4fe1b609a56c67e28105136c7

Modified Files
--------------
src/pl/plpython/plpy_elog.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2026-07-06 18:48:15 pgsql: Fix LIKE matching with nondeterministic collations and backslash
Previous Message Tom Lane 2026-07-06 17:06:45 pgsql: Fix LIKE/regex optimization for indexscan with exact-match patte