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

From Peter T Mount
Subject Re: [GENERAL] RE: [HACKERS] error messages not only English
Date
Msg-id Pine.LNX.3.95.980526204528.2407B-100000@retep.org.uk
Whole thread Raw
In response to Re: [GENERAL] RE: [HACKERS] error messages not only English  (Bruce Momjian <maillist@candle.pha.pa.us>)
List pgsql-hackers
On Tue, 26 May 1998, Bruce Momjian wrote:

> >
> > 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.

Ah, I see what you mean.

The idea of using text files, could be a way round this.

--
Peter T Mount peter@retep.org.uk or petermount@earthling.net
Main Homepage: http://www.retep.org.uk
************ Someday I may rebuild this signature completely ;-) ************
Work Homepage: http://www.maidstone.gov.uk Work EMail: peter@maidstone.gov.uk


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [GENERAL] RE: [HACKERS] error messages not only English
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Current sources?