pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add check for syscache lookup failure in update_relispartition()
Date: Sun, 05 May 2019 17:10:15 +0000
Message-ID: <E1hNKeV-00008U-Vr@gemulon.postgresql.org> (raw)

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
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/62148c3520b562e518f17134b22120bab0cb113b

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



view thread (2+ messages)  latest in thread

Message-ID: <E1hNKeV-00008U-Vr@gemulon.postgresql.org>
Permalink:  ../E1hNKeV-00008U-Vr@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1hNKeV-00008U-Vr@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Add check for syscache lookup failure in update_relispartition()
  In-Reply-To: <E1hNKeV-00008U-Vr@gemulon.postgresql.org>
  References: <E1hNKeV-00008U-Vr@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox