summaryrefslogtreecommitdiff
path: root/src/include/utils/errcodes.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2004-10-01 16:40:05 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2004-10-01 16:40:05 +0000
commit4c5e810fcda57940d1a7178389129591eb93d68e (patch)
tree71677cf693a93449b45fc082fc7c571452ef4459 /src/include/utils/errcodes.h
parent392b187a214272937557af695692b6586375cc66 (diff)
Code review for NOWAIT patch: downgrade NOWAIT from fully reserved keyword
to unreserved keyword, use ereport not elog, assign a separate error code for 'could not obtain lock' so that applications will be able to detect that case cleanly.
Diffstat (limited to 'src/include/utils/errcodes.h')
-rw-r--r--src/include/utils/errcodes.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/utils/errcodes.h b/src/include/utils/errcodes.h
index 5ef9461f444..a43f6991da7 100644
--- a/src/include/utils/errcodes.h
+++ b/src/include/utils/errcodes.h
@@ -11,7 +11,7 @@
*
* Copyright (c) 2003, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/include/utils/errcodes.h,v 1.15 2004/08/29 05:06:58 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/utils/errcodes.h,v 1.16 2004/10/01 16:40:04 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -308,6 +308,7 @@
#define ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE MAKE_SQLSTATE('5','5', '0','0','0')
#define ERRCODE_OBJECT_IN_USE MAKE_SQLSTATE('5','5', '0','0','6')
#define ERRCODE_CANT_CHANGE_RUNTIME_PARAM MAKE_SQLSTATE('5','5', 'P','0','2')
+#define ERRCODE_LOCK_NOT_AVAILABLE MAKE_SQLSTATE('5','5', 'P','0','3')
/* Class 57 - Operator Intervention (class borrowed from DB2) */
#define ERRCODE_OPERATOR_INTERVENTION MAKE_SQLSTATE('5','7', '0','0','0')