Skip site navigation (1) Skip section navigation (2)

Re: [GENERAL] RE: [HACKERS] error messages not only English

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [GENERAL] RE: [HACKERS] error messages not only English
Date: 1998-05-26 19:59:57
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Peter T Mount <psqlhack(at)retep(dot)org(dot)uk> writes:
> In libpq, this could be added to PQerrorMessage(). This could attempt to
> get the native language error message from the DB, defaulting to either an
> english one, or just the error code (it would be a bad problem in this
> case).

Um.  libpq has its own error messages that it can generate --- the most
obvious ones being those about "failed to connect to postmaster"
and "lost connection to backend".  How is it supposed to get a localized
equivalent message from the server in cases like that?

Bear in mind that libpq may be executing on a remote machine, so
"have it read the error message file directly" is not a usable answer.

			regards, tom lane


pgsql-hackers by date

Next:From: Peter T MountDate: 1998-05-26 20:12:09
Subject: Re: [GENERAL] RE: [HACKERS] error messages not only English
Previous:From: David HartwigDate: 1998-05-26 18:44:04
Subject: Re: [HACKERS] Current sources?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group