pgsql: Silence compiler warning from older compilers.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Silence compiler warning from older compilers.
Date: 2026-03-23 21:25:17
Message-ID: E1w4mlw-0018dI-2J@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Silence compiler warning from older compilers.

Our RHEL7-vintage buildfarm animals are complaining about
"the comparison will always evaluate as true" for a usage of
SOFT_ERROR_OCCURRED() on a local variable. This is the same
issue addressed in 7bc88c3d6 and some earlier commits, so solve
it the same way: write "escontext.error_occurred" instead.

Problem dates to recent commit a0b6ef29a, no need for back-patch.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2e123e3c2bd34f2377212a4e7cfcdbf9e2d9c7ff

Modified Files
--------------
src/backend/commands/tablecmds.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2026-03-23 23:30:42 pgsql: Make implementation of SASLprep compliant for ASCII characters
Previous Message Tom Lane 2026-03-23 19:34:10 pgsql: Doc: minor improvements to SNI documentation.