Repair find_inheritance_children with no active snapshot

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: 4131f755d548f74eba56285dc674f1f26e4ed6b4
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2021-04-08T04:46:14Z
Releases: 14.0
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.

Files

PathChange+/−
src/backend/catalog/pg_inherits.c modified +5 −2