pgsql: Repair find_inheritance_children with no active snapshot

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Repair find_inheritance_children with no active snapshot
Date: 2021-04-08 04:48:00
Message-ID: E1lUMaG-0005Ng-Pz@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Amit Kapila 2021-04-08 05:00:45 pgsql: Fix typo in jsonfuncs.c.
Previous Message Tom Lane 2021-04-08 03:02:33 pgsql: Allow psql's \df and \do commands to specify argument types.