Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
56b21b7a
Commit
56b21b7a
authored
Feb 01, 2011
by
Simon Riggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Re-classify ERRCODE_DATABASE_DROPPED to 57P04
parent
0c707aa4
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
11 deletions
+12
-11
doc/src/sgml/errcodes.sgml
doc/src/sgml/errcodes.sgml
+6
-5
src/backend/tcop/postgres.c
src/backend/tcop/postgres.c
+1
-1
src/include/utils/errcodes.h
src/include/utils/errcodes.h
+1
-1
src/pl/plpgsql/src/plerrcodes.h
src/pl/plpgsql/src/plerrcodes.h
+4
-4
No files found.
doc/src/sgml/errcodes.sgml
View file @
56b21b7a
...
...
@@ -985,11 +985,6 @@
<entry>deadlock_detected</entry>
</row>
<row>
<entry><literal>40P02</literal></entry>
<entry>DATABASE DROPPED</entry>
<entry>database_dropped</entry>
</row>
<row>
<entry spanname="span13"><emphasis role="bold">Class 42 — Syntax Error or Access Rule Violation</></entry>
...
...
@@ -1374,6 +1369,12 @@
<entry>cannot_connect_now</entry>
</row>
<row>
<entry><literal>57P04</literal></entry>
<entry>DATABASE DROPPED</entry>
<entry>database_dropped</entry>
</row>
<row>
<entry spanname="span13"><emphasis role="bold">Class 58 — System Error (errors external to <productname>PostgreSQL</> itself)</></entry>
...
...
src/backend/tcop/postgres.c
View file @
56b21b7a
...
...
@@ -2916,7 +2916,7 @@ ProcessInterrupts(void)
Assert
(
RecoveryConflictReason
==
PROCSIG_RECOVERY_CONFLICT_DATABASE
);
pgstat_report_recovery_conflict
(
RecoveryConflictReason
);
ereport
(
FATAL
,
(
errcode
(
ERRCODE_
T_R_
DATABASE_DROPPED
),
(
errcode
(
ERRCODE_DATABASE_DROPPED
),
errmsg
(
"terminating connection due to conflict with recovery"
),
errdetail_recovery_conflict
()));
}
...
...
src/include/utils/errcodes.h
View file @
56b21b7a
...
...
@@ -243,7 +243,6 @@
#define ERRCODE_T_R_SERIALIZATION_FAILURE MAKE_SQLSTATE('4','0', '0','0','1')
#define ERRCODE_T_R_STATEMENT_COMPLETION_UNKNOWN MAKE_SQLSTATE('4','0', '0','0','3')
#define ERRCODE_T_R_DEADLOCK_DETECTED MAKE_SQLSTATE('4','0', 'P','0','1')
#define ERRCODE_T_R_DATABASE_DROPPED MAKE_SQLSTATE('4','0', 'P','0','2')
/* Class 42 - Syntax Error or Access Rule Violation */
#define ERRCODE_SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION MAKE_SQLSTATE('4','2', '0','0','0')
...
...
@@ -333,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) */
...
...
src/pl/plpgsql/src/plerrcodes.h
View file @
56b21b7a
...
...
@@ -483,10 +483,6 @@
"deadlock_detected"
,
ERRCODE_T_R_DEADLOCK_DETECTED
},
{
"database_dropped"
,
ERRCODE_T_R_DATABASE_DROPPED
},
{
"syntax_error_or_access_rule_violation"
,
ERRCODE_SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION
},
...
...
@@ -739,6 +735,10 @@
"cannot_connect_now"
,
ERRCODE_CANNOT_CONNECT_NOW
},
{
"database_dropped"
,
ERRCODE_DATABASE_DROPPED
},
{
"io_error"
,
ERRCODE_IO_ERROR
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment