Re: [HACKERS] Adding type info etc for inheritance errmsg: "child table is missing column ..."
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: [HACKERS] Adding type info etc for inheritance errmsg: "child table is missing column ..." |
| Дата | |
| Msg-id | 26581.1483810742@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | [HACKERS] Adding type info etc for inheritance errmsg: "child table is missingcolumn ..." (Ryan Murphy <ryanfmurphy@gmail.com>) |
| Ответы |
Re: [HACKERS] Adding type info etc for inheritance errmsg: "childtable is missing column ..."
|
| Список | pgsql-hackers |
Ryan Murphy <ryanfmurphy@gmail.com> writes:
> The attached patch is my initial attempt at adding the type, making the
> error message read e.g.:
> ERROR: child table is missing column "name" text
"... column "name" of type text", perhaps? Does not read very nicely
as is.
> I'm sure it needs work (in particular I borrowed a lot of the get-type-name
> logic from getTypeOutputInfo() so probably needs a factor),
The approved way to do this is with format_type_be(), or
format_type_with_typemod() if you want to include typmod info, which
I think you probably do for the intended use-case.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера