| От | Stephen Frost |
|---|---|
| Тема | Re: Users, Roles and Connection Pooling |
| Дата | |
| Msg-id | 20191002184411.GK6962@tamriel.snowman.net обсуждение |
| Ответ на | Re: Users, Roles and Connection Pooling (Matt Andrews <mattandrews@massey.com.au>) |
| Список | pgsql-general |
Greetings, (we don't top-post on these lists, fyi, please reply in-line and trim) * Matt Andrews (mattandrews@massey.com.au) wrote: > I have little experience in this area, but it seems like having a Postgres > role for every application user is the right way to do things. It’s just > that it also seems really inconvenient. I agree that there are some drawbacks to it. > For example how to map an application’s users/people table to Postgres > roles? The pg_role name field is limited to 64 bytes, you can’t create a > foreign key to pg_role. What’s the answer? Use UUIDs as usernames or > something? Yeah, it would be nice to have an answer to the FK issue when it comes to roles (and possibly other things..). The limit on length is annoying but I'm not sure that it's show-stopper. I don't think using UUIDs is a good idea, at all... > There’s very little out there on this topic, but surely this has been done > before. Oh, absolutely, but with compromises, particularly around FKs and such. Thanks, Stephen
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера