Re: [HACKERS] error code 25001

2009-01-07 Thread Tom Lane
Tatsuo Ishii writes: > 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. >

[HACKERS] error code 25001

2009-01-07 Thread Tatsuo Ishii
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 cod