From: | "Victor Yegorov" <viy(at)pirmabanka(dot)lv> |
---|---|
To: | pgsql-sql(at)postgresql(dot)org |
Subject: | Relation "pg_relcheck" |
Date: | 2003-02-25 15:50:21 |
Message-ID: | 20030225155021.GA4347@pirmabanka.lv |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Hello.
I'm running PostgreSQL 7.3.2 on i686-pc-linux-gnu, compiled by GCC 2.95.3.
I've created a table (a forest of nested sets):
create table forest (
tree_id int4 not null,
leaf_id int4 not null,
lid int2 not null check(lid > 0),
rid int2 not null check (rid > 1),
relation_id int2 not null default 0,
constraint forest_order check(lid < rid),
constraint forest_primary primary key(tree_id, leaf_id)
);
Now, in psql:
mema2=> \d forest
ERROR: Relation "pg_relcheck" does not exist
Whats the problem, I wonder. I've already created a new DB location with
initdb and pointed server to it - same stuff.
psql -E gives the following:
mema2=> \d forest
********* QUERY **********
SELECT relhasindex, relkind, relchecks, reltriggers, relhasrules
FROM pg_class WHERE relname='forest'
**************************
********* QUERY **********
SELECT a.attname, format_type(a.atttypid, a.atttypmod), a.attnotnull,
a.atthasdef, a.attnum
FROM pg_class c, pg_attribute a
WHERE c.relname = 'forest'
AND a.attnum > 0 AND a.attrelid = c.oid
ORDER BY a.attnum
**************************
********* QUERY **********
SELECT substring(d.adsrc for 128) FROM pg_attrdef d, pg_class c
WHERE c.relname = 'forest' AND c.oid = d.adrelid AND d.adnum = 5
**************************
********* QUERY **********
SELECT c2.relname
FROM pg_class c, pg_class c2, pg_index i
WHERE c.relname = 'forest' AND c.oid = i.indrelid AND i.indexrelid =
c2.oid
AND NOT i.indisunique ORDER BY c2.relname
**************************
********* QUERY **********
SELECT c2.relname
FROM pg_class c, pg_class c2, pg_index i
WHERE c.relname = 'forest' AND c.oid = i.indrelid AND i.indexrelid = c2.oid
AND i.indisprimary AND i.indisunique ORDER BY c2.relname
**************************
********* QUERY **********
SELECT c2.relname
FROM pg_class c, pg_class c2, pg_index i
WHERE c.relname = 'forest' AND c.oid = i.indrelid AND i.indexrelid = c2.oid
AND NOT i.indisprimary AND i.indisunique ORDER BY c2.relname
**************************
********* QUERY **********
SELECT rcsrc, rcname
FROM pg_relcheck r, pg_class c
WHERE c.relname='forest' AND c.oid = r.rcrelid
**************************
ERROR: Relation "pg_relcheck" does not exist
mema2=>
Hope to hear from you.
--
Victor Yegorov
From | Date | Subject | |
---|---|---|---|
Next Message | Victor Yegorov | 2003-02-25 16:08:37 | Re: Relation "pg_relcheck" |
Previous Message | Stephan Szabo | 2003-02-25 15:50:13 | Re: Sub Select inside Check ? |