| От | Tom Lane |
|---|---|
| Тема | Re: [GENERAL] Disabling inheritance with query. |
| Дата | |
| Msg-id | 15399.1482361125@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | [GENERAL] Disabling inheritance with query. (Edmundo Robles <edmundo@sw-argos.com>) |
| Ответы |
Re: [GENERAL] Disabling inheritance with query.
|
| Список | pgsql-general |
Edmundo Robles <edmundo@sw-argos.com> writes:
> i need disable inheritance from many tables in a query like
> "delete from pg_inherits where inhparent=20473" instead alter table ...
> but is safe? which is the risk for database if i delete it?
This seems really dangerous. You're certainly missing the pg_depend
linkages, not to mention attribute inheritance counts in pg_attribute,
and there may be other things I'm not remembering offhand.
Why can't you use the normal ALTER TABLE approach?
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера