pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Silence compiler warning from older compilers.
Date: Mon, 23 Mar 2026 21:25:17 +0000
Message-ID: <E1w4mlw-0018dI-2J@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1w4mlw-0018dI-2J@gemulon.postgresql.org>
Permalink:  ../E1w4mlw-0018dI-2J@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1w4mlw-0018dI-2J@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Silence compiler warning from older compilers.
  In-Reply-To: <E1w4mlw-0018dI-2J@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox