Re: Creating users with name and email

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andreas Burkhardt <rootshell(at)web(dot)de>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Creating users with name and email
Date: 2006-06-04 02:02:04
Message-ID: 25874.1149386524@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Andreas Burkhardt <rootshell(at)web(dot)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

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Greg 2006-06-05 12:28:49 Display large object from database
Previous Message Tom Lane 2006-06-04 01:59:16 Re: Postgresql fail as boot time