diff options
| author | Simon Riggs <simon@2ndQuadrant.com> | 2011-02-01 08:49:58 +0000 | 
|---|---|---|
| committer | Simon Riggs <simon@2ndQuadrant.com> | 2011-02-01 08:49:58 +0000 | 
| commit | d6c1dc176a422ed19d698bb8ff9ed7b38c04a320 (patch) | |
| tree | 938726c58ef089e8dd55fade1d6fcd81406fc770 /src/include/utils/errcodes.h | |
| parent | 9a012852897fec73ed1459486d6e8426c674d9ad (diff) | |
Create new errcode for recovery conflict caused by db drop on master.
Previously reported as ERRCODE_ADMIN_SHUTDOWN, this case is now
reported as ERRCODE_DATABASE_DROPPED. No message text change.
Unlikely to happen on most servers, so low impact change to allow
session poolers to correctly handle this situation.
Tatsuo Ishii and Simon Riggs
Diffstat (limited to 'src/include/utils/errcodes.h')
| -rw-r--r-- | src/include/utils/errcodes.h | 1 | 
1 files changed, 1 insertions, 0 deletions
| diff --git a/src/include/utils/errcodes.h b/src/include/utils/errcodes.h index f7be2611f86..be13920530a 100644 --- a/src/include/utils/errcodes.h +++ b/src/include/utils/errcodes.h @@ -332,6 +332,7 @@  #define ERRCODE_ADMIN_SHUTDOWN				MAKE_SQLSTATE('5','7', 'P','0','1')  #define ERRCODE_CRASH_SHUTDOWN				MAKE_SQLSTATE('5','7', 'P','0','2')  #define ERRCODE_CANNOT_CONNECT_NOW			MAKE_SQLSTATE('5','7', 'P','0','3') +#define ERRCODE_DATABASE_DROPPED			MAKE_SQLSTATE('5','7', 'P','0','4')  /* Class 58 - System Error (class borrowed from DB2) */  /* (we define this as errors external to PostgreSQL itself) */ | 
