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

Function CheckForModifySystemFunc

src/backend/commands/functioncmds.c:2686–2694  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2684}
2685
2686static void
2687CheckForModifySystemFunc(Oid funcOid, List *funcName)
2688{
2689 if (!allowSystemTableMods && funcOid < FirstBootstrapObjectId)
2690 ereport(ERROR,
2691 (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
2692 errmsg("permission defined: \"%s\" is a system function",
2693 NameListToString(funcName))));
2694}
2695
2696/*
2697 * Execute CALL statement

Callers 1

AlterFunctionFunction · 0.85

Calls 3

NameListToStringFunction · 0.85
errcodeFunction · 0.50
errmsgFunction · 0.50

Tested by

no test coverage detected