Re: Adding type info etc for inheritance errmsg: "child table is missing column ..."

From: Ryan Murphy <ryanfmurphy(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL DEV mailing list <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Adding type info etc for inheritance errmsg: "child table is missing column ..."
Date: 2017-01-07 19:16:55
Message-ID: CAHeEsBcAeOFjpxdNRQ9aB+e0nTEFBJfRUW-ctKXCw=06Kirx=g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> No, and TBH I would vote strongly against including that much detail in
> this error message anyway. That info could be indefinitely long, and it's
> not especially relevant to the stated error condition --- for example, the
> presence of a default is *not* relevant to whether the column matches the
> parent. I'm okay with shoehorning column type into this message, but not
> much more than that.
>
> regards, tom lane
>

Ok, that makes sense. How about things like NOT NULL? you get an error if
your column doesn't have that.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Vik Fearing 2017-01-07 19:54:43 Re: Adding type info etc for inheritance errmsg: "child table is missing column ..."
Previous Message Tom Lane 2017-01-07 19:15:18 Re: Adding type info etc for inheritance errmsg: "child table is missing column ..."