Foreign keys and pg_user table - Mailing list pgsql-general

From C G
Subject Foreign keys and pg_user table
Date
Msg-id Law12-F64SLpRXcco2E0002af80@hotmail.com
Whole thread Raw
Responses Re: Foreign keys and pg_user table
Re: Foreign keys and pg_user table
List 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 by date:

Previous
From: "Marc G. Fournier"
Date:
Subject: Re: add column sillyness
Next
From: Oliver Elphick
Date:
Subject: Re: Strange permission problem regarding pg_settings