* GetUserId - get the current effective user ID. * * Note: there's no SetUserId() anymore; use SetUserIdAndSecContext(). */
| 493 | * Note: there's no SetUserId() anymore; use SetUserIdAndSecContext(). |
| 494 | */ |
| 495 | Oid |
| 496 | GetUserId(void) |
| 497 | { |
| 498 | AssertState(OidIsValid(CurrentUserId)); |
| 499 | return CurrentUserId; |
| 500 | } |
| 501 | |
| 502 | |
| 503 | /* |
no outgoing calls
no test coverage detected