* GetUserIdAndSecContext/SetUserIdAndSecContext - get/set the current user ID * and the SecurityRestrictionContext flags. * * Currently there are three valid bits in SecurityRestrictionContext: * * SECURITY_LOCAL_USERID_CHANGE indicates that we are inside an operation * that is temporarily changing CurrentUserId via these functions. This is * needed to indicate that the actual value of Cur
| 611 | * through AbortTransaction without asserting in case InitPostgres fails. |
| 612 | */ |
| 613 | void |
| 614 | GetUserIdAndSecContext(Oid *userid, int *sec_context) |
| 615 | { |
| 616 | *userid = CurrentUserId; |
| 617 | *sec_context = SecurityRestrictionContext; |
| 618 | } |
| 619 | |
| 620 | void |
| 621 | SetUserIdAndSecContext(Oid userid, int sec_context) |
no outgoing calls
no test coverage detected