pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: Fangbing Wu <fangbingw@gmail.com>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: How do I get more error codes from libpq
Date: Tue, 11 Oct 2005 21:14:29 -0600
Message-ID: <20051012031428.GA27278@winnie.fuhr.org> (raw)
In-Reply-To: <6619c3340510111959o770e3b1m3a493480068411d9@mail.gmail.com>
References: <6619c3340510111959o770e3b1m3a493480068411d9@mail.gmail.com>

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



view thread (4+ messages)  latest in thread

Message-ID: <20051012031428.GA27278@winnie.fuhr.org>
Permalink:  ../20051012031428.GA27278@winnie.fuhr.org/
Also on:    postgresql.org/message-id/20051012031428.GA27278@winnie.fuhr.org

 · 

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: pgsql-interfaces@postgresql.org
  Cc: mike@fuhr.org, fangbingw@gmail.com
  Subject: Re: How do I get more error codes from libpq
  In-Reply-To: <20051012031428.GA27278@winnie.fuhr.org>

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

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