pgsql: Create new errcode for recovery conflict caused by db drop on ma

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Create new errcode for recovery conflict caused by db drop on ma
Date: 2011-02-01 08:52:01
Message-ID: E1PkBxx-0003Ki-VJ@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
REL9_0_STABLE

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=d6c1dc176a422ed19d698bb8ff9ed7b38c04a320

Modified Files
--------------
doc/src/sgml/errcodes.sgml | 6 ++++++
src/backend/tcop/postgres.c | 2 +-
src/include/utils/errcodes.h | 1 +
src/pl/plpgsql/src/plerrcodes.h | 4 ++++
4 files changed, 12 insertions(+), 1 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Magnus Hagander 2011-02-01 12:29:31 pgsql: Undefine setlocale() macro on Win32
Previous Message Simon Riggs 2011-02-01 08:45:20 pgsql: Re-classify ERRCODE_DATABASE_DROPPED to 57P04