Re: [GENERAL] RE: [HACKERS] error messages not only English - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [GENERAL] RE: [HACKERS] error messages not only English
Date
Msg-id 199805261818.OAA15206@candle.pha.pa.us
Whole thread Raw
In response to Re: [GENERAL] RE: [HACKERS] error messages not only English  (Peter T Mount <psqlhack@retep.org.uk>)
Responses Re: [GENERAL] RE: [HACKERS] error messages not only English  (Peter T Mount <psqlhack@retep.org.uk>)
List pgsql-hackers
>
> Why into C variables? You could have a function that returns the correct
> string for the error code, and have it default if it can't access the
> table.

So we run an internal SQL query to get the error message from a table?
I guess we could do it, but the system state while in elog() is only
partial.  You would have to do the longjump, reset, then ru the query.

--
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)

pgsql-hackers by date:

Previous
From: Peter T Mount
Date:
Subject: Re: [HACKERS] error messages not only English
Next
From: dg@illustra.com (David Gould)
Date:
Subject: Re: [HACKERS] Current sources?