From: | Robert Haas <rhaas(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Add a function to get the authenticated user ID. |
Date: | 2014-10-23 12:56:38 |
Message-ID: | [email protected] |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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.
Branch
------
master
Modified Files
--------------
src/backend/utils/init/miscinit.c | 10 ++++++++++
src/include/miscadmin.h | 1 +
2 files changed, 11 insertions(+)
From | Date | Subject | |
---|---|---|---|
Next Message | Fujii Masao | 2014-10-23 13:34:31 | pgsql: Remove the unused argument of PSQLexec(). |
Previous Message | Fujii Masao | 2014-10-23 07:33:11 | pgsql: Prevent the already-archived WAL file from being archived again. |