Re: partition tree inspection functions

Amit Langote <langote_amit_f8@lab.ntt.co.jp>

From: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
To: jesper.pedersen@redhat.com
Cc: Michael Paquier <michael@paquier.xyz>, Jeevan Ladhe <jeevan.ladhe@enterprisedb.com>, Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2018-07-31T02:11:27Z
Lists: pgsql-hackers

Attachments

Hi Jesper,

On 2018/07/30 22:21, Jesper Pedersen wrote:
> On 07/30/2018 05:21 AM, Amit Langote wrote:
>>> As 0 is a valid return value for root nodes I think we should use -1
>>> instead for these cases.
>>
>> Makes sense, changed to be that way.
>>
> 
> Looks good, the documentation for pg_partition_level could be expanded to
> describe the -1 scenario.

Done.

> New status: Ready for Committer

Thanks.  Updated patch attached.

Regards,
Amit

Commits

  1. Add pg_partition_tree to display information about partitions