| От | Andreas Burkhardt |
|---|---|
| Тема | Creating users with name and email |
| Дата | |
| Msg-id | 4ebblcF1dl0m6U1@uni-berlin.de обсуждение исходный текст |
| Ответы |
Re: Creating users with name and email
|
| Список | pgsql-novice |
Normally php programers create a table 'users' with name and password. But the real access will be done allways with the same (super)user and password. This is less secure and a bad design, too. So ich pass the user thru php to the database. But I want to have additional entrys for my users like the full name und the e-mail address. How will I handle this the best way in postgresql: 1. adding the new columns to pg_authid? 2. CREATE TABLE users ( email VARCHAR ) INHERITS (pg_authid); 3. CREATE TABLE users ( rolname VARCHAR REFERENCES pg_authid ( rolname ), email VARCHAR ); 4. ???
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера