| От | Tom Lane |
|---|---|
| Тема | Re: System catalogs |
| Дата | |
| Msg-id | 3567.1006111606@sss.pgh.pa.us обсуждение |
| Ответ на | System catalogs ("Aasmund Midttun Godal" <postgresql@envisity.com>) |
| Список | pgsql-sql |
"Aasmund Midttun Godal" <postgresql@envisity.com> writes:
> I saw in the docs that you are not supposed to edit them manually... However is it considered appropriate to do other
thingssuch as:
> referencing them (adding foreign keys on them)
> adding triggers to them (e.g. delete all this stuff if this table is dropped). This would include adding cascade
clausesto the referring.
By and large, triggers on system catalogs will not work, because most
of the internal manipulations of the catalogs do not bother to fire
triggers. This implies that foreign key constraints won't work either,
since those are implemented by triggers.
regards, tom lane
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера