Foreign keys and pg_user table

Поиск
Список
Период
Сортировка
От C G
Тема Foreign keys and pg_user table
Дата
Msg-id Law12-F64SLpRXcco2E0002af80@hotmail.com
обсуждение исходный текст
Ответы Re: Foreign keys and pg_user table
Re: Foreign keys and pg_user table
Список pgsql-general
Dear All,

I'm trying to create a table where the username and email can only be
inserted into the table if the username is already in pg_user. The method
I'm trying is:

CREATE user(
  usename name,
  email text,
  FOREIGN KEY usename REFERENCES (pg_user)
);

but I get told that "...pg_user is not a table."

Is there another way of doing what I want?

Many thanks

Colin

_________________________________________________________________
Stay in touch with absent friends - get MSN Messenger
http://www.msn.co.uk/messenger


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

Предыдущее
От: "Marc G. Fournier"
Дата:
Сообщение: Re: add column sillyness
Следующее
От: Oliver Elphick
Дата:
Сообщение: Re: Strange permission problem regarding pg_settings