Re: [Fwd: Re: ruleutils with pretty-print option]

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [Fwd: Re: ruleutils with pretty-print option]
Дата
Msg-id 992.1059658664@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [Fwd: Re: ruleutils with pretty-print option]  (Andreas Pflug <pgadmin@pse-consulting.de>)
Список pgsql-patches
Andreas Pflug <pgadmin@pse-consulting.de> writes:
> Now the patch is *really* appended :-)

And rejected.  You cannot assume that an operator is commutative or
associative just because it has a name you think ought to be.
(For a counter-example, it's well known that floating-point addition
is not associative.)

More: if the tree structure for ops of equal precedence looks like
a + (b + c), then it's a near certainty that the user wrote those
parentheses.  Why would you think that removing them is pretty-printing?

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Proof-of-concept for initdb-time shared_buffers selection
Следующее
От: Andreas Pflug
Дата:
Сообщение: Re: [Fwd: Re: ruleutils with pretty-print option]