Re: pg_partition_tree crashes for a non-defined relation

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Amit Langote <amitlangote09@gmail.com>
Cc: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>, Postgres hackers <pgsql-hackers@postgresql.org>
Date: 2018-12-08T03:45:49Z
Lists: pgsql-hackers
On Sat, Dec 08, 2018 at 12:28:53PM +0900, Amit Langote wrote:
> Thanks for noticing it and creating the patch.  The fix makes sense.

Thanks a lot for looking at it!
--
Michael

Commits

  1. Test partition functions with legacy inheritance children, too

  2. Consider only relations part of partition trees in partition functions

  3. Make pg_partition_tree return no rows on unsupported and undefined objects

  4. Tweak pg_partition_tree for undefined relations and unsupported relkinds