agora inbox for postgres@postgres.berkeley.edu  
help / color / mirror / Atom feed
From: Kacper Nowicki <Kacper.Nowicki@fuw.edu.pl>
To: Postgres Mailing List <postgres@postgres.Berkeley.EDU>
Subject: Errors returned from backend
Date: Thu, 21 Apr 1994 12:19:41 +0200 (MET DST)
Message-ID: <Pine.3.89.9404211248.B7146-0100000@ccfs1> (raw)


Hi,

I'm writing yet another POTGRES interface. It is based on Tcl/Tk.
I'm still using POSTGRES version 4.1 and I do have following problem : 

I would like to show user error message returned from backend (if PQtty is
properly set it is not logged on backend side). Unfortunately error
message is simply printed to standard error :

pq_getstr(errormsg, error_msg_length);
fprintf(stderr,"%s", errormsg);

and is not accessible from libpq functions level.

I can, of course, rewrite PQexec in libpq but it is not elegant way
to program simple interface with exchanging one of POSTGRES C interface
main parts.

Is this possible to add error reading feature in version 4.2 or maybe
this is already done ?

Kacper

------------------------------------------------------------------------
Kacper Nowicki                         e-mail: Kacper.Nowicki@fuw.edu.pl
Warsaw University                      =================================
Institute of Experimental Physics
Hoza 69, 00-681 Warszawa               fax: (+48)(22) 294309
Poland                                      (+48) 39121805






reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: postgres@postgres.berkeley.edu
  Cc: Kacper.Nowicki@fuw.edu.pl
  Subject: Re: Errors returned from backend
  In-Reply-To: <Pine.3.89.9404211248.B7146-0100000@ccfs1>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox