Re: comment doesn't match code

From: Etsuro Fujita <fujita(dot)etsuro(at)lab(dot)ntt(dot)co(dot)jp>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: comment doesn't match code
Date: 2015-06-11 04:53:58
Message-ID: 55791466.5000907@lab.ntt.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2015/06/10 20:18, Robert Haas wrote:
> /*
> * ALTER TABLE INHERIT
> *
> * Add a parent to the child's parents. This verifies that all the columns and
> * check constraints of the parent appear in the child and that they have the
> * same data types and expressions.
> */
> static void
> ATPrepAddInherit(Relation child_rel)
> {
> if (child_rel->rd_rel->reloftype)
> ereport(ERROR,
> (errcode(ERRCODE_WRONG_OBJECT_TYPE),
> errmsg("cannot change inheritance of typed table")));
> }

I agree with you.

Besides that, ISTM taht the error message is a little bit confusing
because I think typed tables cannot inherit. Maybe I'm missing
something though. Proposed patch attached.

Best regards,
Etsuro Fujita

Attachment Content-Type Size
alter-table-inherit.patch text/x-patch 1.2 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2015-06-11 04:54:23 Re: 9.5 release notes
Previous Message Amit Kapila 2015-06-11 04:50:13 Re: 9.5 release notes