pgsql: Add a function to get the authenticated user ID.

Поиск
Список
Период
Сортировка
От Robert Haas
Тема pgsql: Add a function to get the authenticated user ID.
Дата
Msg-id E1XhHwU-0000um-EU@gemulon.postgresql.org
обсуждение исходный текст
Список 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

Details
-------
http://git.postgresql.org/pg/commitdiff/5ac372fc1a7cc673cc7d4cf26ba651d52495b27a

Modified Files
--------------
src/backend/utils/init/miscinit.c |   10 ++++++++++
src/include/miscadmin.h           |    1 +
2 files changed, 11 insertions(+)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Fujii Masao
Дата:
Сообщение: pgsql: Prevent the already-archived WAL file from being archived again.
Следующее
От: Fujii Masao
Дата:
Сообщение: pgsql: Remove the unused argument of PSQLexec().