Re: [HACKERS] Adding type info etc for inheritance errmsg: "childtable is missing column ..."

Поиск
Список
Период
Сортировка
От Ryan Murphy
Тема Re: [HACKERS] Adding type info etc for inheritance errmsg: "childtable is missing column ..."
Дата
Msg-id CAHeEsBcAeOFjpxdNRQ9aB+e0nTEFBJfRUW-ctKXCw=06Kirx=g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [HACKERS] Adding type info etc for inheritance errmsg: "child table is missing column ..."  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [HACKERS] Adding type info etc for inheritance errmsg: "childtable is missing column ..."  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Список 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.

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] Adding type info etc for inheritance errmsg: "child table is missing column ..."
Следующее
От: Vik Fearing
Дата:
Сообщение: Re: [HACKERS] Adding type info etc for inheritance errmsg: "childtable is missing column ..."