pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Casey Allen Shobe <cshobe@secureworks.net>
To: pgsql-admin@postgresql.org
Subject: Cannot reference system table
Date: Mon, 21 Oct 2002 20:50:15 -0400
Message-ID: <200210212050.15495.cshobe@secureworks.net> (raw)

create table	"schemes" (
	"id"		integer		not null unique default nextval('schemes_scheme_id_seq'),
	"user_id"	integer		not null references "pg_user" ("usesysid"),
	"scheme_name"	varchar(32)	not null unique,
	"expired"	boolean		not null default false,
	primary key	("id")
);
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index 'schemes_pkey' 
for table 'schemes'
NOTICE:  CREATE TABLE will create implicit trigger(s) for FOREIGN KEY check(s)
ERROR:  Referenced relation "pg_user" is not a table

As you can hopefully see, I need to reference the postgres user table for data 
integrity.  Can this be done?

Also, what can I do before creating the table to eliminate those notices?

Thanks,

-- 
Casey Allen Shobe / Network Security Analyst & PHP Developer
SecureWorks, Inc. / 404.327.6339 x169 / Fax: 404.728.0144
cshobe@secureworks.net / http://www.secureworks.net
Content is my own and does not necessarily represent my company.



view thread (2+ messages)  latest in thread

Message-ID: <200210212050.15495.cshobe@secureworks.net>
Permalink:  ../200210212050.15495.cshobe@secureworks.net/
Also on:    postgresql.org/message-id/200210212050.15495.cshobe@secureworks.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: cshobe@secureworks.net
  Subject: Re: Cannot reference system table
  In-Reply-To: <200210212050.15495.cshobe@secureworks.net>
  References: <200210212050.15495.cshobe@secureworks.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox