]> granicus.if.org Git - postgresql/commit
Add a function to get the authenticated user ID.
authorRobert Haas <rhaas@postgresql.org>
Thu, 23 Oct 2014 12:18:45 +0000 (08:18 -0400)
committerRobert Haas <rhaas@postgresql.org>
Thu, 23 Oct 2014 12:18:45 +0000 (08:18 -0400)
commit5ac372fc1a7cc673cc7d4cf26ba651d52495b27a
tree0a7e62bc9cd02ff6eb908a416d5aebe76c85f0f4
parentc7371c4a607872c4d799e0dac0c9367574067cdc
Add a function to get the authenticated user ID.

Previously, this was not exposed outside of miscinit.c.  It is needed
for the pending pg_background patch, and will also be needed for
parallelism.  Without it, there's no way for a background worker to
re-create the exact authentication environment that was present in the
process that started it, which could lead to security exposures.
src/backend/utils/init/miscinit.c
src/include/miscadmin.h