pgsql: Check for BuildIndexValueDescription returning NULL in gist_page

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Check for BuildIndexValueDescription returning NULL in gist_page
Date: 2021-01-18 12:57:25
Message-ID: E1l1U61-0000TO-UH@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Check for BuildIndexValueDescription returning NULL in gist_page_items

Per Coverity. BuildIndexValueDescription() cannot actually return NULL in
this instance, because it only returns NULL if the user doesn't have the
required privileges, and this function can only be used by superuser. But
better safe than sorry.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5d1e5c8b758770186b005a1c3888b05e37af79c5

Modified Files
--------------
contrib/pageinspect/gistfuncs.c | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Laurenz Albe 2021-01-18 16:09:06 Re: pgsql: Add pg_stat_database counters for sessions and session time
Previous Message Peter Eisentraut 2021-01-18 08:22:41 pgsql: Pause recovery for insufficient parameter settings