From: | Þórhallur Hálfdánarson <tolli(at)tol(dot)li> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Darko Prenosil <darko(dot)prenosil(at)finteh(dot)hr>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Upgrading the backend's error-message infrastructure |
Date: | 2003-03-14 15:54:20 |
Message-ID: | 20030314155420.A24125@tol.li |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-interfaces |
-*- Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> [ 2003-03-14 15:33 ]:
> Darko Prenosil <darko(dot)prenosil(at)finteh(dot)hr> writes:
> > What about user messages ?
> > If I remember correct, MSSQL had a system catalog table with formated error
> > messages, and it was possible to raise error with error number and it's
> > parameters. It can be very useful when you must raise same error from
> > different places in the code.
>
> But that's exactly the direction we are *not* going in. We had that
> discussion a long time ago when we first started internationalizing
> our error messages. Peter Eisentraut convinced everybody that we did
> not want to tie error codes to unique error messages. [digs in archives
> ...] See for example
> http://fts.postgresql.org/db/mw/msg.html?mid=1279991
> I have no desire to revisit that choice.
>
> There is nothing to stop you from creating your own user-defined
> messages, and even adding them to the .po files in your installation
> if the need strikes. We aren't going to store them in any system table,
> however.
What about the option of having error numbers unique, but have error numbers linked to error messages (unique in code, but share strings).
Just my .02 ISK.
--
Regards,
Tolli
tolli(at)tol(dot)li
From | Date | Subject | |
---|---|---|---|
Next Message | johnnnnnn | 2003-03-14 16:19:22 | Re: Upgrading the backend's error-message infrastructure |
Previous Message | Tom Lane | 2003-03-14 15:33:05 | Re: Upgrading the backend's error-message infrastructure |
From | Date | Subject | |
---|---|---|---|
Next Message | johnnnnnn | 2003-03-14 16:19:22 | Re: Upgrading the backend's error-message infrastructure |
Previous Message | Tom Lane | 2003-03-14 15:33:05 | Re: Upgrading the backend's error-message infrastructure |