Re: pg_partition_tree crashes for a non-defined relation - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: pg_partition_tree crashes for a non-defined relation
Date
Msg-id 20190304185600.GA24510@alvherre.pgsql
Whole thread Raw
In response to Re: pg_partition_tree crashes for a non-defined relation  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Responses Re: pg_partition_tree crashes for a non-defined relation
List pgsql-hackers
On 2019-Feb-28, Alvaro Herrera wrote:

> What about legacy inheritance?  I see that pg_partition_tree handles
> that case perfectly well -- it seems to return the complete hierarchy
> rooted at the given relation.  However, it seems odd that it works at
> all, don't you think?  Consider this:
> [...]
> I would opt for returning the empty set for legacy inheritance too.

I added tests to immortalize the current behavior for legacy inheritance
relations too.  Thanks!

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


pgsql-hackers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS)
Next
From: Andres Freund
Date:
Subject: Re: POC: converting Lists into arrays