Re: Policy on schema-qualified names - Mailing list pgsql-hackers

From Joachim Wieland
Subject Re: Policy on schema-qualified names
Date
Msg-id 20060131182936.GA2873@mcknight.de
Whole thread Raw
In response to Re: Policy on schema-qualified names  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Policy on schema-qualified names  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Mon, Jan 30, 2006 at 05:10:03PM -0500, Tom Lane wrote:
> Peter Eisentraut <peter_e@gmx.net> writes:
> > Joachim Wieland wrote:
> >> I wonder if there is a policy on when schema-qualified names should
> >> be used in ereport/elog messages.

> > If it's not too hard to do, I would add the schema name in most places.

> Actually, it's semi-consciously omitted in most places on the grounds
> that (1) it's seldom necessary to identify the problem, and (2) in many
> error messages it would contribute to violating the "make it fit on one
> line" style guideline.

(1) is probably true but it wouldn't hurt to include the schema name there
either.

Making assumptions on the length of an error message seems to be moot
anyway, since you don't know the length of the names of user defined objects
in advance, nor do you know the length of the translated message strings in
different languages.
So you just lose precision for a questionable gain.



Joachim



pgsql-hackers by date:

Previous
From: Jay Jay
Date:
Subject: Vacuum and Hash Tables
Next
From: Tom Lane
Date:
Subject: Re: Policy on schema-qualified names