Re: duplicates rejected by index reports PGSQL_FATAL_ERROR - Mailing list pgsql-general

From Tom Lane
Subject Re: duplicates rejected by index reports PGSQL_FATAL_ERROR
Date
Msg-id 19823.1067634996@sss.pgh.pa.us
Whole thread Raw
In response to duplicates rejected by index reports PGSQL_FATAL_ERROR  (tj <tj@getlostspammer.com>)
List pgsql-general
tj <tj@getlostspammer.com> writes:
> Its not really a fatal error, is it?  Shouldn't it be reported as a
> NONFATAL_ERROR ?

It's "fatal" to the particular query that was executing.
PGRES_NONFATAL_ERROR is only used for notice messages.  These constant
names are perhaps rather poorly chosen, but we can't change them now
without incurring an unreasonable amount of confusion and backwards
compatibility problems ...

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Custom types and arrays
Next
From: Mark Kirkwood
Date:
Subject: Re: slow query performance