Repair find_inheritance_children with no active snapshot
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 8 Apr 2021 04:46:14 +0000 (00:46 -0400)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 8 Apr 2021 04:46:14 +0000 (00:46 -0400)
commit4131f755d548f74eba56285dc674f1f26e4ed6b4
treeb71b2fe2de504b965b0473e28a695d6823525965
parenta3027e1e7f3d3a107ecd72d3b4d6333ea2aab6a5
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.
src/backend/catalog/pg_inherits.c