Return-Path: owner-postman Delivery-Date: Thu, 21 Apr 94 11:29:17 -0700 Return-Path: owner-postman Received: from localhost (localhost [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.4/8.6.3) with SMTP id DAA11193 for postgres-redist; Thu, 21 Apr 1994 03:19:47 -0700 Resent-From: POSTGRES mailing list Resent-Message-Id: <199404211019.DAA11193@nobozo.CS.Berkeley.EDU> X-Authentication-Warning: nobozo.CS.Berkeley.EDU: Host localhost didn't use HELO protocol Sender: owner-postman@postgres.Berkeley.EDU X-Return-Path: owner-postman Received: from sunic.sunet.se (sunic.sunet.se [192.36.125.2]) by nobozo.CS.Berkeley.EDU (8.6.4/8.6.3) with ESMTP id DAA11184 for ; Thu, 21 Apr 1994 03:19:46 -0700 Received: from cocos.fuw.edu.pl by sunic.sunet.se (8.6.8/2.03) id MAA06064; Thu, 21 Apr 1994 12:19:31 +0200 Received: from ccfs1 (ccfs1.fuw.edu.pl) by cocos.fuw.edu.pl (4.1/SMI-4.1) id AA23627; Thu, 21 Apr 94 12:19:47 +0200 Received: by ccfs1 (4.1/SMI-4.1) id AA09353; Thu, 21 Apr 94 12:19:42 +0200 Date: Thu, 21 Apr 1994 12:19:41 +0200 (MET DST) From: Kacper Nowicki X-Sender: Kacper Nowicki Reply-To: Kacper Nowicki Subject: Errors returned from backend To: Postgres Mailing List Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Resent-To: postgres-redist@postgres.Berkeley.EDU Resent-Date: Thu, 21 Apr 94 03:19:47 -0700 Resent-XMts: smtp 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