MCPcopy Create free account
hub / github.com/apache/cloudberry / errmsg_internal

Function errmsg_internal

src/backend/utils/error/elog.c:1227–1243  ·  view source on GitHub ↗

* errmsg_internal --- add a primary error message text to the current error * * This is exactly like errmsg() except that strings passed to errmsg_internal * are not translated, and are customarily left out of the * internationalization message dictionary. This should be used for "can't * happen" cases that are probably not worth spending translation effort on. * We also use this for certai

Source from the content-addressed store, hash-verified

1225 * error recursion.
1226 */
1227void
1228errmsg_internal(const char *fmt,...)
1229{
1230 ErrorData *edata = &errordata[errordata_stack_depth];
1231 MemoryContext oldcontext;
1232
1233 recursion_depth++;
1234 CHECK_STACK_DEPTH();
1235 oldcontext = MemoryContextSwitchTo(edata->assoc_context);
1236
1237 edata->message_id = fmt;
1238 EVALUATE_MESSAGE(edata->domain, message, false, false);
1239
1240 MemoryContextSwitchTo(oldcontext);
1241 recursion_depth--;
1242 errno = edata->saved_errno; /*CDB*/
1243}
1244
1245
1246/*

Callers 15

errstartFunction · 0.70
ReThrowErrorFunction · 0.70
GetErrorContextStackFunction · 0.70
exec_stmt_raiseFunction · 0.50
exec_stmt_assertFunction · 0.50
PLy_elog_implFunction · 0.50
PLy_outputFunction · 0.50
SocketBackendFunction · 0.50
exec_parse_messageFunction · 0.50
exec_bind_messageFunction · 0.50
ProcessInterruptsFunction · 0.50
PostgresMainFunction · 0.50

Calls 1

MemoryContextSwitchToFunction · 0.85

Tested by 3

create_and_test_bloomFunction · 0.40
check_ao_record_presentFunction · 0.40