Re: Getting error codes for failed queries? - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: Getting error codes for failed queries?
Date
Msg-id 20031015190206.GD1016@dcc.uchile.cl
Whole thread Raw
In response to Re: Getting error codes for failed queries?  (Alejandro Forero Cuervo <bachue@bachue.com>)
Responses Re: Getting error codes for failed queries?
List pgsql-general
On Wed, Oct 15, 2003 at 01:53:49PM -0500, Alejandro Forero Cuervo wrote:
> > In 7.4 there will be error codes.
>
> Does  that imply  that the  socket-level protocol  for backend  /
> frontend communication will change in version 7.4?

Yes.

> > > Do those  strings get translated to  different languages, for
> > > instance?
> >
> > Yes.
>
> I guess that rules out the  option of parsing them to detect what
> went wrong.

Yes, unless you leave to lc_messages option defined to "C".
Unfortunately this cannot be changed at runtime by non-superusers, I
don't know why.

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"Porque Kim no hacia nada, pero, eso sí,
con extraordinario éxito" ("Kim", Kipling)

pgsql-general by date:

Previous
From: Tino Wildenhain
Date:
Subject: Re: constant time count(*) ?
Next
From: Alvaro Herrera
Date:
Subject: Re: Porting Code to Postgresql