pgsql: Suppress Coverity warnings about Asserts in get_name_for_var_fie

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Suppress Coverity warnings about Asserts in get_name_for_var_fie
Date: 2024-08-11 16:25:07
Message-ID: E1sdBNT-003jKi-Ki@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/16e67bc5f98f2f5691fb5c01d5a8310de1c62b81

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

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2024-08-11 17:22:08 pgsql: Initialize HASHCTL differently, to suppress Coverity warning
Previous Message Tom Lane 2024-08-10 19:52:16 pgsql: Allow adjusting session_authorization and role in parallel worke