Re: Why would query return PGRES_NONFATAL_ERROR? - Mailing list pgsql-general

From Tom Lane
Subject Re: Why would query return PGRES_NONFATAL_ERROR?
Date
Msg-id 27119.1081532302@sss.pgh.pa.us
Whole thread Raw
In response to Why would query return PGRES_NONFATAL_ERROR?  (Scott Ribe <scott_ribe@killerbytes.com>)
Responses Re: Why would query return PGRES_NONFATAL_ERROR?
List pgsql-general
Scott Ribe <scott_ribe@killerbytes.com> writes:
> I'm using 7.3.2, invoke a small stored procedure via PQexec, and
> PQresultStatus returns PGRES_NONFATAL_ERROR. I can find nothing in the docs
> to help me understand what could cause this, and PQresultErrorMessage is
> blank.

Hmm ... PGRES_NONFATAL_ERROR is only used for reporting NOTICE messages
coming from the backend, and AFAICS such a result should never be
returned out of PQexec; it's only passed to the notice-message receiver.
You say you're getting it back from PQexec?  You *sure* your libpq is
7.3 vintage?

> I've gone into postgresql.conf and upped the logging info. Any clues as to
> what I should be looking for?

A NOTICE or WARNING sent to that client ...

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: \? not working in psql
Next
From: Tom Lane
Date:
Subject: Re: Why would query return PGRES_NONFATAL_ERROR?