X-Original-To: pgsql-sql@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 365E8475EBB for ; Tue, 25 Feb 2003 11:04:45 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 51146-02 for ; Tue, 25 Feb 2003 11:04:34 -0500 (EST) Received: from shield.pirmabanka.lv (unknown [195.114.57.4]) by postgresql.org (Postfix) with ESMTP id 49A10475E24 for ; Tue, 25 Feb 2003 10:50:06 -0500 (EST) Received: from wall2.pirmabanka.lv (wall2-pub.pirmabanka.lv [195.114.57.14]) by shield.pirmabanka.lv (8.9.3/8.9.3) with SMTP id RAA10402 for ; Tue, 25 Feb 2003 17:50:09 +0200 Received: from share.pirmabanka.lv ([10.0.0.10]) by wall2.pirmabanka.lv; Tue, 25 Feb 2003 17:50:09 +0200 (EET) Received: from pc311x1.pirmabanka.lv (IDENT:root@localhost.localdomain [127.0.0.1]) by pirmabanka.lv (8.11.5/8.11.5) with SMTP id h1PFo8Q11314 for ; Tue, 25 Feb 2003 17:50:09 +0200 Received: (qmail 4359 invoked by uid 100); 25 Feb 2003 15:50:21 -0000 Date: Tue, 25 Feb 2003 17:50:21 +0200 From: "Victor Yegorov" To: pgsql-sql@postgresql.org Subject: Relation "pg_relcheck" Message-ID: <20030225155021.GA4347@pirmabanka.lv> Mail-Followup-To: pgsql-sql@postgresql.org Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline User-Agent: Mutt/1.4i X-Virus-Scanned: by amavisd-new X-Archive-Number: 200302/552 X-Sequence-Number: 11950 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