Re: Mention column name in error messages - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Mention column name in error messages
Date
Msg-id 24025.1440024136@sss.pgh.pa.us
Whole thread Raw
In response to Re: Mention column name in error messages  (Jeff Janes <jeff.janes@gmail.com>)
List pgsql-hackers
Jeff Janes <jeff.janes@gmail.com> writes:
> The hints you add end in a new line, which then gives two new lines once
> they are emitted.  This is contrary to how other HINTs are formatted.
> Other HINTs are complete sentences (start with a capital letter, end with a
> period).
> But I think these belong as CONTEXT or as DETAIL, not as HINT.  The
> messages are giving me details about where (which column)  the error
> occured, they aren't giving suggestions to me about what to do about it.

We have specific style guidelines about this:
http://www.postgresql.org/docs/devel/static/error-message-reporting.html
http://www.postgresql.org/docs/devel/static/error-style-guide.html
        regards, tom lane



pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Declarative partitioning
Next
From: Jim Nasby
Date:
Subject: Re: Freeze avoidance of very large table.