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: Suppress Coverity warnings about Asserts in get_name_for_var_fie
Date: Sun, 11 Aug 2024 16:25:07 +0000
Message-ID: <E1sdBNT-003jKc-Io@gemulon.postgresql.org> (raw)

Suppress Coverity warnings about Asserts in get_name_for_var_field.

Coverity thinks dpns->plan could be null at these points.  That
shouldn't really be possible, but it's easy enough to modify the
Asserts so they'd not core-dump if it were true.

These are new in b919a97a6.  Back-patch to v13; the v12 version
of the patch didn't have these Asserts.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b2be5cb2ab671073ec0fc69357c3c11e25bb41cc

Modified Files
--------------
src/backend/utils/adt/ruleutils.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)



view thread (6+ messages)  latest in thread

Message-ID: <E1sdBNT-003jKc-Io@gemulon.postgresql.org>
Permalink:  ../E1sdBNT-003jKc-Io@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1sdBNT-003jKc-Io@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: Suppress Coverity warnings about Asserts in get_name_for_var_fie
  In-Reply-To: <E1sdBNT-003jKc-Io@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