Re: Trivial heap_finish_speculative() error message inaccuracy - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Trivial heap_finish_speculative() error message inaccuracy
Date
Msg-id 10914.1446606608@sss.pgh.pa.us
Whole thread Raw
In response to Trivial heap_finish_speculative() error message inaccuracy  (Peter Geoghegan <pg@heroku.com>)
Responses Re: Trivial heap_finish_speculative() error message inaccuracy  (Peter Geoghegan <pg@heroku.com>)
List 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 by date:

Previous
From: Amit Kapila
Date:
Subject: Re: COPY FREEZE and PD_ALL_VISIBLE
Next
From: Peter Geoghegan
Date:
Subject: Re: Trivial heap_finish_speculative() error message inaccuracy