error code 25001

From: Tatsuo Ishii <ishii(at)postgresql(dot)org>
To: pgsql-hackers(at)postgresql(dot)org
Subject: error code 25001
Date: 2009-01-07 13:11:35
Message-ID: 20090107.221135.95890034.t-ishii@sraoss.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2009-01-07 13:17:49 Re: incoherent view of serializable transactions
Previous Message Peter Eisentraut 2009-01-07 13:04:50 Re: dblink vs SQL/MED - security and implementation details