Re: "ALSO" keyword to "CREATE RULE" patch

Поиск
Список
Период
Сортировка
От Jan Wieck
Тема Re: "ALSO" keyword to "CREATE RULE" patch
Дата
Msg-id 4047C4F3.4000608@Yahoo.com
обсуждение исходный текст
Ответ на Re: "ALSO" keyword to "CREATE RULE" patch  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: "ALSO" keyword to "CREATE RULE" patch  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-patches
Bruce Momjian wrote:

> Jan Wieck wrote:
>> Tom Lane wrote:
>>
>> > Fabien COELHO <coelho@cri.ensmp.fr> writes:
>> >> Most of the patch deals with the documentation, which is rather ugly
>> >> because it keeps telling about "INSTEAD" vs "non-INSTEAD" rules, as there
>> >> is no name for the default behavior. I think "ALSO" fixes this issue as it
>> >> clarifies the explanations.
>> >
>> > Hmm ... I find that argument much more convincing than any of the others
>> > ...
>> >
>> > Jan, what do you think?  You invented this command's syntax IIRC.
>>
>> I did not. We inherited it from Postgres 4.2. If people think an ALSO
>> keyword will clearify things, what about renaming the whole CREATE RULE
>> into something along the line CREATE QUERY REWRITE MACRO?
>
> Are you saying you don't want ALSO added?
>

No, I am saying that CREATE RULE is so often misinterpreted to work like
a trigger and when we explain that it is more like Macro expansion
before the query is executed they understand better. CREATE RULE itself
is just vague, with or without ALSO.


Jan

--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Fix for log_executor_stats
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: "ALSO" keyword to "CREATE RULE" patch