diff options
author | Tom Lane | 2003-08-26 21:15:27 +0000 |
---|---|---|
committer | Tom Lane | 2003-08-26 21:15:27 +0000 |
commit | 1de9615a58c0147c447f6debf20ed25390884412 (patch) | |
tree | d3e3e51a319892daa04a7e60112a7e89e4af1bcf /src/include/utils/errcodes.h | |
parent | 0b511f07e3db45059e1e5a3ac7acc74ca0c37028 (diff) |
Use separate SQLSTATE codes for file not found/file exists, rather than
lumping them into ERRCODE_UNDEFINED_OBJECT/ERRCODE_DUPLICATE_OBJECT.
This seems reasonable since 'object' was meant to refer to 'object in the
database' and a file is outside the database. Per request from Dave
Cramer.
Diffstat (limited to 'src/include/utils/errcodes.h')
-rw-r--r-- | src/include/utils/errcodes.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/utils/errcodes.h b/src/include/utils/errcodes.h index 8db8e52320c..13e42cf1b9d 100644 --- a/src/include/utils/errcodes.h +++ b/src/include/utils/errcodes.h @@ -11,7 +11,7 @@ * * Copyright (c) 2003, PostgreSQL Global Development Group * - * $Id: errcodes.h,v 1.4 2003/08/04 00:43:32 momjian Exp $ + * $Id: errcodes.h,v 1.5 2003/08/26 21:15:27 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -294,6 +294,8 @@ /* Class 58 - System Error (class borrowed from DB2) */ /* (we define this as errors external to PostgreSQL itself) */ #define ERRCODE_IO_ERROR MAKE_SQLSTATE('5','8', '0','3','0') +#define ERRCODE_UNDEFINED_FILE MAKE_SQLSTATE('5','8', 'P','0','1') +#define ERRCODE_DUPLICATE_FILE MAKE_SQLSTATE('5','8', 'P','0','2') /* Class F0 - Configuration File Error (PostgreSQL-specific error class) */ #define ERRCODE_CONFIG_FILE_ERROR MAKE_SQLSTATE('F','0', '0','0','0') |