From: Tom Lane <tgl@sss.pgh.pa.us>
To: Neil Conway <neilc@samurai.com>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Upgrading the backend's error-message infrastructure
Date: Thu, 13 Mar 2003 16:47:30 -0500
Message-ID: <9563.1047592050@sss.pgh.pa.us> (raw)
In-Reply-To: <1047591570.356.1854.camel@tokyo>
References: <9168.1047588660@sss.pgh.pa.us>
<1047591570.356.1854.camel@tokyo>
Neil Conway <neilc@samurai.com> writes:
> While we're effectively changing every elog call site in the backend,
> would it also be a good idea to adopt a standard for the format of error
> messages? (e.g. capitalization, grammar, etc.)
Yup. I was planning to bring that up as a separate thread. I think
Peter has already put some thought into it, but I couldn't find anything
in the archives...
> If we wanted to get fancy, we could make use of the glibc ability to
> generate a back trace programatically:
Hmm ... maybe. Certainly we all too often ask people to get this info
by hand ... too bad it only works in glibc though.
>> In gcc-compiled
>> backends, the function name will be provided automatically by errstart,
>> but there will be some places where we need the name to be available even
>> in a non-gcc build.
> To be honest, I'd be sceptical whether there are enough platforms
> without *either* gcc or a C99 compiler that it's worthwhile worrying
> about them that much (all that is at stake is some backward
> compatibility, anyway).
I'm only planning to bother with the errfunction hack for messages that
I know are being specifically tested for by existing frontends. ecpg
looks for "PerformPortalFetch" messages, for example. If we don't keep
that name in the (old version of the) error message then we have a
compatibility problem. But I do want to move away from having function
names in the primary error message text.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: tgl@sss.pgh.pa.us, neilc@samurai.com, pgsql-hackers@postgresql.org
Subject: Re: Upgrading the backend's error-message infrastructure
In-Reply-To: <9563.1047592050@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox