Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id CCF9D9FA4AD for ; Mon, 9 Jul 2007 10:33:25 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 30834-01 for ; Mon, 9 Jul 2007 10:33:13 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from lists.commandprompt.com (host-254.commandprompt.net [207.173.203.254]) by postgresql.org (Postfix) with ESMTP id 8EEC19FA34F for ; Mon, 9 Jul 2007 10:33:21 -0300 (ADT) Received: from perhan.alvh.no-ip.org (201-221-218-82.bk12-dsl.surnet.cl [201.221.218.82]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id l69DXKeN007358; Mon, 9 Jul 2007 06:33:20 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id F367F47C44; Mon, 9 Jul 2007 09:33:17 -0400 (CLT) Date: Mon, 9 Jul 2007 09:33:17 -0400 From: Alvaro Herrera To: Carmen Martinez Cc: pgsql-admin@postgresql.org Subject: Re: Catalog insertion Message-ID: <20070709133317.GB8121@alvh.no-ip.org> References: <20070709004240.GB9539@alvh.no-ip.org> <20070709092205.91514.qmail@web26506.mail.ukl.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20070709092205.91514.qmail@web26506.mail.ukl.yahoo.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: ClamAV 0.90.3/3610/Sun Jul 8 04:24:35 2007 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Mon, 09 Jul 2007 06:33:21 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/73 X-Sequence-Number: 26054 Carmen Martinez escribió: > I want to insert new tables in the pg_catalog schema. So I have to > execute a common create table sentence like "Create Table > pg_catalog.newTable ....", but I am not allowed to do that and I do > not know why. > > Following I show one of the sentences I execute and the error messages > > > One of the tables I try to create is: > > CREATE TABLE pg_catalog.COL_LIST ( OBJ OID NOT NULL, COL OID NOT NULL, > T_TYPE numeric(1) NOT NULL, LEN numeric(2) NOT NULL, COM > varchar(100) , PRIMARY KEY (OBJ, COL) , CONSTRAINT > LEN_TOO_LONG_IN_COL_LIST CHECK (LEN>=1 AND LEN<=10), CONSTRAINT > TYPE_MUST_BE_1_2_o_3 CHECK (T_TYPE=1 OR T_TYPE=2 OR T_TYPE=3)) > > ERROR: permission denied to create "pg_catalog.col_list" > DETAIL: System catalog modifications are currently disallowed. Oh, you can't do that. It's disallowed by policy. If you want to create catalogs you need to be in standalone or bootstrap mode (typically they are created by declaring a src/include/catalog/*.h file and having it be included in postgres.bki by the genbki script). -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.