| От | korry |
|---|---|
| Тема | Re: Role attribute for user email? |
| Дата | |
| Msg-id | 47F24292.1050205@enterprisedb.com обсуждение исходный текст |
| Ответ на | Role attribute for user email? ("Philippe Lang" <philippe.lang@attiksystem.ch>) |
| Список | pgsql-general |
You might consider using inheritance:Is there a way to create new attributes for a login role, like an "email attribute"? I have to keep a few informations on all the users that connect to the PG server, and their attributes list looks like an elegant place to store these informations. But I cannot find a way to add new attributes... Is that possible?
CREATE TABLE users(email TEXT) INHERITS(pg_authid);But I'm not sure that will work on the pg_authid table. And it seems like you would have to insert/update manually instead of using the CREATE/ALTER ROLE commands.
-- Korry Douglas <korryd@enterprisedb.com> EnterpriseDB http://www.enterprisedb.com
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера