summaryrefslogtreecommitdiff
path: root/src/include/utils
diff options
context:
space:
mode:
authorSimon Riggs2016-03-11 09:53:06 +0000
committerSimon Riggs2016-03-11 09:53:06 +0000
commit73e7e49da3b23a15cd84f003e11ad7d55ad80da7 (patch)
tree620324e097a9e3540bfd13a2af81fd5325075a1a /src/include/utils
parenta414d96ad2b001cddf10e3dedb0bde96d0af6a0b (diff)
Allow emit_log_hook to see original message text
emit_log_hook could only see the translated text, making it harder to identify which message was being sent. Pass original text to allow the exact message to be identified, whichever language is used for logging. Discussion: 20160216.184755.59721141.horiguchi.kyotaro@lab.ntt.co.jp Author: Kyotaro Horiguchi
Diffstat (limited to 'src/include/utils')
-rw-r--r--src/include/utils/elog.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/utils/elog.h b/src/include/utils/elog.h
index 326896f020..7d338dd1ce 100644
--- a/src/include/utils/elog.h
+++ b/src/include/utils/elog.h
@@ -349,11 +349,12 @@ typedef struct ErrorData
const char *domain; /* message domain */
const char *context_domain; /* message domain for context message */
int sqlerrcode; /* encoded ERRSTATE */
- char *message; /* primary error message */
+ char *message; /* primary error message (translated) */
char *detail; /* detail error message */
char *detail_log; /* detail error message for server log only */
char *hint; /* hint message */
char *context; /* context message */
+ const char *message_id; /* message id of .message (original English text) */
char *schema_name; /* name of schema */
char *table_name; /* name of table */
char *column_name; /* name of column */