Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 03F0E475B8C for ; Mon, 21 Oct 2002 20:50:15 -0400 (EDT) Received: from mail.secureworks.net (mail.secureworks.net [209.101.212.155]) by postgresql.org (Postfix) with SMTP id 30E91475E20 for ; Mon, 21 Oct 2002 20:50:13 -0400 (EDT) Received: (qmail 55954 invoked from network); 22 Oct 2002 00:48:42 -0000 Received: from unknown (HELO gabrielle.secureworks.net) (63.239.86.253) by mail.secureworks.net with SMTP; 22 Oct 2002 00:48:42 -0000 Content-Type: text/plain; charset="us-ascii" From: Casey Allen Shobe Organization: SecureWorks, Inc. To: pgsql-admin@postgresql.org Subject: Cannot reference system table Date: Mon, 21 Oct 2002 20:50:15 -0400 User-Agent: KMail/1.4.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200210212050.15495.cshobe@secureworks.net> X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/176 X-Sequence-Number: 6034 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_pke= y'=20 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 d= ata=20 integrity. Can this be done? Also, what can I do before creating the table to eliminate those notices? Thanks, --=20 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.