use pg_catalog for foreign key constraint - Mailing list pgsql-general

From Jonathan Hedstrom
Subject use pg_catalog for foreign key constraint
Date
Msg-id 41C1D30D.8040305@desc.org
Whole thread Raw
In response to Re: bytea internal encoding  (Ron Peterson <rpeterso@mtholyoke.edu>)
Responses Re: use pg_catalog for foreign key constraint
List pgsql-general
Does anyone know if it is possible to use system catalogs in foreign key
constraints in Postgres 7.4.1?

My sample table:
*
CREATE TABLE tbl_reference (
reference_id SERIAL PRIMARY KEY,
from_table NAME NOT NULL REFERENCES pg_catalog.pg_class(relname),
from_id INTEGER,
to_table NAME NOT NULL REFERENCES pg_catalog.pg_class(relname),
to_id INTEGER
);*

The error I get when I try to create the table:

*ERROR: permission denied for relation pg_class*

If this is a permission issue, I already have SELECT permissions on
pg_class...any ideas as to what sort of permissions need to be granted
to accomplish this?


Attachment

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: pl/pgsql oddity
Next
From: "Karl O. Pinc"
Date:
Subject: Re: Postgres not using shared memory