diff options
author | Peter Eisentraut | 2003-08-27 00:33:34 +0000 |
---|---|---|
committer | Peter Eisentraut | 2003-08-27 00:33:34 +0000 |
commit | b25a090baae660af921e15b1b498a3fe7ea2dde0 (patch) | |
tree | ed4d4bbf7998e86d887716fb68f6c2caa009a6b2 /src/include/postgres_ext.h | |
parent | 3603dbcd6b83048ac416d8e3552daa16a54657eb (diff) |
Share PG_DIAG_* macros between client and server and use them internally.
Diffstat (limited to 'src/include/postgres_ext.h')
-rw-r--r-- | src/include/postgres_ext.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/include/postgres_ext.h b/src/include/postgres_ext.h index 13c7dd2363..6d3082ea74 100644 --- a/src/include/postgres_ext.h +++ b/src/include/postgres_ext.h @@ -47,4 +47,21 @@ typedef unsigned int Oid; */ #define NAMEDATALEN 64 + +/* + * Identifiers of error message fields. Kept here to keep common + * between frontend and backend, and also to export them to libpq + * applications. + */ +#define PG_DIAG_SEVERITY 'S' +#define PG_DIAG_SQLSTATE 'C' +#define PG_DIAG_MESSAGE_PRIMARY 'M' +#define PG_DIAG_MESSAGE_DETAIL 'D' +#define PG_DIAG_MESSAGE_HINT 'H' +#define PG_DIAG_STATEMENT_POSITION 'P' +#define PG_DIAG_CONTEXT 'W' +#define PG_DIAG_SOURCE_FILE 'F' +#define PG_DIAG_SOURCE_LINE 'L' +#define PG_DIAG_SOURCE_FUNCTION 'R' + #endif |