pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Repair find_inheritance_children with no active snapshot
Date: Thu, 08 Apr 2021 04:48:00 +0000
Message-ID: <E1lUMaG-0005Ng-Pz@gemulon.postgresql.org> (raw)

Repair find_inheritance_children with no active snapshot

When working on a scan with only a catalog snapshot, we may not have an
ActiveSnapshot set.  If we were to come across a detached partition,
that would cause a crash.  Fix by only ignoring detached partitions when
there's an active snapshot.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4131f755d548f74eba56285dc674f1f26e4ed6b4

Modified Files
--------------
src/backend/catalog/pg_inherits.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)



Message-ID: <E1lUMaG-0005Ng-Pz@gemulon.postgresql.org>
Permalink:  ../E1lUMaG-0005Ng-Pz@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lUMaG-0005Ng-Pz@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: alvherre@alvh.no-ip.org
  Subject: Re: pgsql: Repair find_inheritance_children with no active snapshot
  In-Reply-To: <E1lUMaG-0005Ng-Pz@gemulon.postgresql.org>
  References: <E1lUMaG-0005Ng-Pz@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