error code 25001 - Mailing list pgsql-hackers

From Tatsuo Ishii
Subject error code 25001
Date
Msg-id 20090107.221135.95890034.t-ishii@sraoss.co.jp
Whole thread Raw
Responses Re: error code 25001
List pgsql-hackers
Error code 25001 is used for "SET TRANSACTION ISOLATION LEVEL must be
called before any query" when it's an ERROR. However, it also means
"there is already a transaction in progress" when it's a NOTICE.

So we cannot distinguish them just by checking the error code.

So my question is, an error code is used for both an error condition
*and* a warning: is this normal?
--
Tatsuo Ishii
SRA OSS, Inc. Japan


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: dblink vs SQL/MED - security and implementation details
Next
From: Peter Eisentraut
Date:
Subject: Re: incoherent view of serializable transactions