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

Function GetUserId

src/backend/utils/init/miscinit.c:495–500  ·  view source on GitHub ↗

* GetUserId - get the current effective user ID. * * Note: there's no SetUserId() anymore; use SetUserIdAndSecContext(). */

Source from the content-addressed store, hash-verified

493 * Note: there's no SetUserId() anymore; use SetUserIdAndSecContext().
494 */
495Oid
496GetUserId(void)
497{
498 AssertState(OidIsValid(CurrentUserId));
499 return CurrentUserId;
500}
501
502
503/*

Callers 15

postgresBeginForeignScanFunction · 0.85
create_foreign_modifyFunction · 0.85
file_fdw_validatorFunction · 0.85
sanity_check_relationFunction · 0.85
insert_usernameFunction · 0.85
pgrowlocksFunction · 0.85
pg_prewarmFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected