Re: BUG #4808: Rules on system catalogs are allowed but not executed.
В списке pgsql-bugs по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: BUG #4808: Rules on system catalogs are allowed but not executed. |
| Дата | |
| Msg-id | 29883.1242228666@sss.pgh.pa.us обсуждение |
| Ответ на | Re: BUG #4808: Rules on system catalogs are allowed but not executed. (Dave Page <dpage@pgadmin.org>) |
| Список | pgsql-bugs |
Dave Page <dpage@pgadmin.org> writes:
> On Wed, May 13, 2009 at 3:36 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> They're not honored by internal catalog updates, no.
> Shouldn't their creation be prevented in the first place, like triggers?
Well, maybe --- normally I'd say that superusers shouldn't need training
wheels, but making it consistent with triggers is a legitimate argument.
Comparing the code, I notice that DefineRule isn't being very picky
about the relkind either; it looks like it'd let you create rules on
sequences or toast tables, neither of which seems tremendously sensible.
CreateTrigger explicitly restricts to plain tables, and what would make
sense if we are trying to make the behavior comparable is to restrict
rules to tables or views.
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера