Re: \d doesn't show partitioned table foreign keys

From: Amit Langote <amitlangote09(at)gmail(dot)com>
To: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
Cc: Amit Langote <Langote_Amit_f8(at)lab(dot)ntt(dot)co(dot)jp>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: \d doesn't show partitioned table foreign keys
Date: 2018-05-14 15:49:23
Message-ID: CA+HiwqF-7zY-Ok45qQ928c0gXZD8Nr0Qf-tWEwcnbCSA_5p83w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, May 15, 2018 at 12:38 AM, Alvaro Herrera
<alvherre(at)2ndquadrant(dot)com> wrote:
> On 2018-May-14, Amit Langote wrote:
>
>> Hi.
>>
>> I just noticed $subject, which attached seems to fix, although not sure if
>> that's the correct fix for the issue.
>
> The fix looks good to me. Will push shortly.

Thank you.

> A related issue is that \d of the referenced table shows both the
> partitioned table as well as all of its partitions, which seems too
> repetitive. I think we should only list the partitioned table itself.
> Thoughts?

Yeah, I think showing only the partitioned table makes sense, assuming
that the triggers and constraint entries on the partitions are an
implementation detail. Right?

Thanks,
Amit

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2018-05-14 17:00:53 Re: Incorrect path in header comment identification
Previous Message Alvaro Herrera 2018-05-14 15:38:39 Re: \d doesn't show partitioned table foreign keys