pgsql: Suppress Coverity warnings about Asserts in get_name_for_var_fie - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Suppress Coverity warnings about Asserts in get_name_for_var_fie
Date
Msg-id E1sdBNT-003jKc-Io@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Allow adjusting session_authorization and role in parallel worke
Next
From: Heikki Linnakangas
Date:
Subject: pgsql: Initialize HASHCTL differently, to suppress Coverity warning