Re: Trivial heap_finish_speculative() error message inaccuracy

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Trivial heap_finish_speculative() error message inaccuracy
Дата
Msg-id 10914.1446606608@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Trivial heap_finish_speculative() error message inaccuracy  (Peter Geoghegan <pg@heroku.com>)
Ответы Re: Trivial heap_finish_speculative() error message inaccuracy
Список pgsql-hackers
Peter Geoghegan <pg@heroku.com> writes:
> While auditing the access method code associated with ON CONFLICT DO
> UPDATE's speculative insertion infrastructure, I noticed an
> inaccuracy.

> Attached patch fixes the trivial inaccuracy in a defensive elog()
> call. Quite simply, this call site didn't get the memo when we renamed
> that function during the late stages of development.

This seems like a fine teaching moment in which to point out our
longstanding error message style guideline that says not to put
names of C functions into error messages in the first place.
        regards, tom lane



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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: COPY FREEZE and PD_ALL_VISIBLE
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: Trivial heap_finish_speculative() error message inaccuracy