Re: Creating users with name and email

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Creating users with name and email
Дата
Msg-id 25874.1149386524@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Creating users with name and email  (Andreas Burkhardt <rootshell@web.de>)
Список pgsql-novice
Andreas Burkhardt <rootshell@web.de> writes:
> 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 );

Actually, none of those will work.  You can't modify system catalogs (at
least not without a lot of internals work).  You can make a users table
OK, you just can't set up a foreign-key linkage to pg_authid ...

            regards, tom lane

В списке pgsql-novice по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Postgresql fail as boot time
Следующее
От: "Greg"
Дата:
Сообщение: Display large object from database