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-003jKm-LF@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
------
REL_14_STABLE

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

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