Re: [EXTERNAL] Re: [PATCH] Support using "all" for the db user in pg_ident.conf
Вложения
В списке pgsql-hackers по дате отправления:
| От | Michael Paquier |
|---|---|
| Тема | Re: [EXTERNAL] Re: [PATCH] Support using "all" for the db user in pg_ident.conf |
| Дата | |
| Msg-id | Y76YEHolPL4LIAtO@paquier.xyz обсуждение исходный текст |
| Ответ на | Re: [EXTERNAL] Re: [PATCH] Support using "all" for the db user in pg_ident.conf (Jelte Fennema <Jelte.Fennema@microsoft.com>) |
| Ответы |
Re: [EXTERNAL] Re: [PATCH] Support using "all" for the db user in pg_ident.conf
|
| Список | pgsql-hackers |
On Wed, Jan 11, 2023 at 09:04:56AM +0000, Jelte Fennema wrote: > It's very different. I think easiest is to explain by example: > > If there exist three users on the postgres server: admin, jelte and michael > > Then this rule (your suggested rule): > mapname /^(.*)$ \1 > > Is equivalent to: > mapname admin admin > mapname jelte jelte > mapname michael michael > > While with the "all" keyword you can create a rule like this: > mapname admin all > > which is equivalent to: > mapname admin admin > mapname admin jelte > mapname admin michael Thanks for the explanation, I was missing your point. Hmm. On top of my mind, couldn't we also use a regexp for the pg-role rather than just a hardcoded keyword here then, so as it would be possible to allow a mapping to pass for a group of role names? "all" is just a pattern to allow everything, at the end. -- Michael
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера