Re: Getting rid of aggregate_dummy()

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Getting rid of aggregate_dummy()
Дата
Msg-id 639171.1604326876@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Getting rid of aggregate_dummy()  (Isaac Morland <isaac.morland@gmail.com>)
Ответы Re: Getting rid of aggregate_dummy()  (Isaac Morland <isaac.morland@gmail.com>)
Список pgsql-hackers
Isaac Morland <isaac.morland@gmail.com> writes:
> On Sun, 1 Nov 2020 at 15:47, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Anyway, this saves about 3KB in fmgrtab.o, without any downside
>> that I can see.  If someone accidentally called an aggregate as
>> a normal function, they'd now get a different error message,
>> namely "internal function "aggregate_dummy" is not in internal lookup
>> table" instead of "aggregate function NNN called as normal function".
>> That doesn't really seem like a problem.

> Speaking as somebody who sometimes does really dumb things, I don’t like
> this change in error message. The current message clearly identifies the
> problem; the new message makes it look like there is a bug in Postgres.

Neither message would be reachable without (erroneous) C hacking,
so I don't quite buy that there's a problem.

            regards, tom lane



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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: contrib/sslinfo cleanup and OpenSSL errorhandling
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Getting rid of aggregate_dummy()