| От | Tom Lane |
|---|---|
| Тема | Re: how to make table inherits another ? |
| Дата | |
| Msg-id | 28569.1108589708@sss.pgh.pa.us обсуждение |
| Ответ на | Re: how to make table inherits another ? (Oleg Bartunov <oleg@sai.msu.su>) |
| Ответы |
Re: how to make table inherits another ?
|
| Список | pgsql-hackers |
Oleg Bartunov <oleg@sai.msu.su> writes:
> I know this. I need to create inheritance for already created tables.
> There is no way to do this using alter table, so I tried to
> define it by hand :)
Did you remember to set relhassubclass for the parent table?
AFAIR, all that you really need are that and the pg_inherits row.
It'd be a good idea to install a pg_depend entry, and to modify the
child's pg_attribute rows to show the columns as inherited (attislocal
and attinhcount) but I believe the latter would only bite you if you
tried to do ALTER commands on the tables later.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера