Re: meaning of PQresultStatus types

From: jois(dot)de(dot)vivre(at)gmail(dot)com
To: pgsql-general(at)postgresql(dot)org
Subject: Re: meaning of PQresultStatus types
Date: 2006-05-25 18:37:46
Message-ID: 1148582266.514186.266870@y43g2000cwc.googlegroups.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thanks for your reply,

> FATAL is probably a bad choice of words here; it basically means any
> error condition reported by the server that caused execution of your
> query to be abandoned. NONFATAL_ERROR actually means "notice or
> warning message", and isn't a possible return code from PQexec anyway.

Just for anyone else wondering about this in the future, I found that
PGRES_FATAL_ERROR can be a simple situation such as your query having a
syntax error, or as serious as an outright database shutdown (i.e.
connection lost).

In response to

Browse pgsql-general by date

  From Date Subject
Next Message P.M 2006-05-25 18:52:04 move from 1 database to another
Previous Message Dawid Kuroczko 2006-05-25 18:27:07 Re: background triggers?