pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@commandprompt.com>
To: Carmen Martinez <carmenmtezcruz@yahoo.es>
Cc: pgsql-admin@postgresql.org
Subject: Re: Catalog insertion
Date: Mon, 9 Jul 2007 09:33:17 -0400
Message-ID: <20070709133317.GB8121@alvh.no-ip.org> (raw)
In-Reply-To: <20070709092205.91514.qmail@web26506.mail.ukl.yahoo.com>
References: <20070709004240.GB9539@alvh.no-ip.org>
	<20070709092205.91514.qmail@web26506.mail.ukl.yahoo.com>

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.



view thread (10+ messages)  latest in thread

Message-ID: <20070709133317.GB8121@alvh.no-ip.org>
Permalink:  ../20070709133317.GB8121@alvh.no-ip.org/
Also on:    postgresql.org/message-id/20070709133317.GB8121@alvh.no-ip.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: alvherre@commandprompt.com, carmenmtezcruz@yahoo.es
  Subject: Re: Catalog insertion
  In-Reply-To: <20070709133317.GB8121@alvh.no-ip.org>
  References: <20070709004240.GB9539@alvh.no-ip.org> <20070709092205.91514.qmail@web26506.mail.ukl.yahoo.com> <20070709133317.GB8121@alvh.no-ip.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox