pgsql: Add check for syscache lookup failure in update_relispartition()

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add check for syscache lookup failure in update_relispartition()
Date: 2019-05-05 17:10:15
Message-ID: E1hNKeV-00008Y-W8@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add check for syscache lookup failure in update_relispartition().

Omitted in commit 05b38c7e6 (though it looks like the original blame
belongs to 9e9befac4). A failure is admittedly unlikely, but if it
did happen, SIGSEGV is not the approved method of reporting it.

Per Coverity. Back-patch to v11 where the broken code originated.

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/030ad0acfa5794c645a9a6093fdd3ed4d4f4788c

Modified Files
--------------
src/backend/commands/indexcmds.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2019-05-05 17:10:16 pgsql: Fix style violations in syscache lookups.
Previous Message Tomas Vondra 2019-05-04 20:04:37 Re: pgsql: Fix union for pgstat message types