Pattern
Cloud Run Task Shutdown
cloud-run-task-shutdown
once returned to connection pool. | SET current_user = 123 — once returned to connection pool. | set_config('somenamespace.current_user', 123, true). Tension: This raises the following complexities: It significantly increases amount of code required on a backend. Outcome: Different endpoints in your app can operate under different roles with adequate defaults already in place.