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

Function errposition

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

* errposition --- add cursor position to the current error */

Source from the content-addressed store, hash-verified

1510 * errposition --- add cursor position to the current error
1511 */
1512int
1513errposition(int cursorpos)
1514{
1515 ErrorData *edata = &errordata[errordata_stack_depth];
1516
1517 /* we don't bother incrementing recursion_depth */
1518 CHECK_STACK_DEPTH();
1519
1520 edata->cursorpos = cursorpos;
1521
1522 return 0;
1523}
1524
1525/*
1526 * errprintstack -- force print out stack trace

Callers 11

import_error_callbackFunction · 0.50
parser_errpositionFunction · 0.50
sql_exec_error_callbackFunction · 0.50
executor_errpositionFunction · 0.50
_SPI_error_callbackFunction · 0.50
gangRaiseInfoFunction · 0.50
lexer_errpositionFunction · 0.50

Calls

no outgoing calls

Tested by 1

gangRaiseInfoFunction · 0.40