X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 8B203D6DB0 for ; Wed, 12 Oct 2005 00:14:39 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 98560-01 for ; Wed, 12 Oct 2005 03:14:37 +0000 (GMT) Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by svr1.postgresql.org (Postfix) with ESMTP id CC283D79A6 for ; Wed, 12 Oct 2005 00:14:36 -0300 (ADT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.3/8.13.3) with ESMTP id j9C3ETYV083945 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 11 Oct 2005 21:14:32 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.4/8.13.4) with ESMTP id j9C3EThS031351; Tue, 11 Oct 2005 21:14:29 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.4/8.13.4/Submit) id j9C3ETB5031350; Tue, 11 Oct 2005 21:14:29 -0600 (MDT) (envelope-from mfuhr) Date: Tue, 11 Oct 2005 21:14:29 -0600 From: Michael Fuhr To: Fangbing Wu Cc: pgsql-interfaces@postgresql.org Subject: Re: How do I get more error codes from libpq Message-ID: <20051012031428.GA27278@winnie.fuhr.org> References: <6619c3340510111959o770e3b1m3a493480068411d9@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6619c3340510111959o770e3b1m3a493480068411d9@mail.gmail.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.005 required=5 tests=[AWL=0.005] X-Spam-Level: X-Archive-Number: 200510/10 X-Sequence-Number: 5772 On Tue, Oct 11, 2005 at 10:59:19PM -0400, Fangbing Wu wrote: > I'm just getting started to use libpq to access my DB with > PQexecParam etc. > I'm still searching for ways to get detailed error codes from libpq, > say when a request was denied due to permission etc. > Is stuff like this possible? Yes, just read a little farther down the "Command Execution Functions" documentation: http://www.postgresql.org/docs/8.0/interactive/libpq-exec.html -- Michael Fuhr