| От | Tom Lane |
|---|---|
| Тема | Re: "$user" and SESSION_USER and CURRENT_USER |
| Дата | |
| Msg-id | 9732.1545331352@sss.pgh.pa.us обсуждение |
| Ответ на | "$user" and SESSION_USER and CURRENT_USER (antonov@stdpr.ru) |
| Список | pgsql-docs |
antonov@stdpr.ru writes: > here -- https://www.postgresql.org/docs/11/runtime-config-client.html > there is the text """If one of the list items is the special name $user, > then the schema having the name returned by SESSION_USER is substituted, > if there is such a schema and the user has USAGE permission for it. (If > not, $user is ignored.)""". > but actualy "$user" substitutes CURRENT_USER-value (not > SESSION_USER-value). Huh. Digging in the commit history, SESSION_USER was the original implementation (commit 838fe25a9 of 2002-04-01) but it was changed later that month (ccfaf9067 of 2002-04-29) when we added schema permissions checks. Evidently I forgot to update the docs to match :-( Will fix, thanks for noticing! regards, tom lane
В списке pgsql-docs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера