diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2011-07-16 13:41:48 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2011-07-16 14:22:32 -0400 |
commit | 657836741410563be35180ba34adcdae6c767ce5 (patch) | |
tree | 663a823d2553b78b0084544e5e9205d7ffb57ebd /src/include | |
parent | 885604d112d5b20d94e2d5d8b352d47a6e585ceb (diff) | |
download | postgresql-657836741410563be35180ba34adcdae6c767ce5.tar.gz |
Add an errdetail_internal() ereport auxiliary routine.
This function supports untranslated detail messages, in the same way that
errmsg_internal supports untranslated primary messages. We've needed this
for some time IMO, but discussion of some cases in the SSI code provided
the impetus to actually add it.
Kevin Grittner, with minor adjustments by me
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/utils/elog.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/utils/elog.h b/src/include/utils/elog.h index 4a3bd02689..93b141d683 100644 --- a/src/include/utils/elog.h +++ b/src/include/utils/elog.h @@ -147,6 +147,12 @@ errdetail(const char *fmt,...) __attribute__((format(PG_PRINTF_ATTRIBUTE, 1, 2))); extern int +errdetail_internal(const char *fmt,...) +/* This extension allows gcc to check the format string for consistency with + the supplied arguments. */ +__attribute__((format(PG_PRINTF_ATTRIBUTE, 1, 2))); + +extern int errdetail_log(const char *fmt,...) /* This extension allows gcc to check the format string for consistency with the supplied arguments. */ |