Re: Delete rule does not prevent truncate

Поиск
Список
Период
Сортировка
От Tim Smith
Тема Re: Delete rule does not prevent truncate
Дата
Msg-id CA+HuS5E4JEYuP9eYDdFjZSngne-+goKDrDHRz7UMMo4RNhRdfw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Delete rule does not prevent truncate  (Adrian Klaver <adrian.klaver@aklaver.com>)
Список pgsql-general
>
> Just in case it has not been made obvious yet, rules are silently
> deprecated. They still exist because views depend on them, but it is
> generally considered best practices to not use them outside that realm.


Well, the manual doesn't seem to reflect that fact.

If that's how the developers feel about rules, i.e they can't be
bothered to make any changes to the rules code any more, no matter how
minor (e.g. this TRUNCATE issue), then you should explicitly state in
the manual that they are depreciated, and stop making stupid
statements like "so if many rows are affected in one statement, a rule
issuing one extra command is likely to be faster than a trigger" that
encourage people to use rules !


В списке pgsql-general по дате отправления:

Предыдущее
От: Herouth Maoz
Дата:
Сообщение: Re: Connections closing due to "terminating connection due to administrator command"
Следующее
От: Tim Smith
Дата:
Сообщение: Re: Delete rule does not prevent truncate