pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marcin Kowalski <kowalski@datrix.co.za>
To: pgsql-admin@postgresql.org.pgsql-general
Subject: Re: pg_dump potential bug -UNIQUE INDEX on PG_SHADOW Dont!! HELP
Date: Thu, 29 Mar 2001 10:35:06 +0200
Message-ID: <99us31$cvk$1@news.tht.net> (raw)
References: <18053.985792976@sss.pgh.pa.us>

Hi 

Regarding my previous post, I just successfully created a unique index on 
pg_shadow. DON'T DO THIS!!!
-------
CREATE UNIQUE INDEX shadow_index ON pg_shadow (usename)
-------
I couldn't create at pg_shadow_index as the pg prefix is reserved for 
system tables. 

This BROKE the database. At least I can't connect anymore with a:
-------
template1=# \c statements
FATAL 1:  Index 'pg_shadow_name_index' does not exist
Previous connection kept
template1=#
-------
If I look at the error log I get :
-------
ERROR:  Illegal class name 'pg_shadow_index'
        The 'pg_' name prefix is reserved for system catalogs
ERROR:  Index 'pg_shadow_name_index' does not exist
ERROR:  SearchSysCache: recursive use of cache 23
ERROR:  SearchSysCache: recursive use of cache 23
ERROR:  SearchSysCache: recursive use of cache 23
ERROR:  SearchSysCache: recursive use of cache 23 <-- quite psql here
FATAL 1:  Index 'pg_shadow_name_index' does not exist <-- restarted again
FATAL 1:  Index 'pg_shadow_name_index' does not exist
FATAL 1:  Index 'pg_shadow_name_index' does not exist
-------

What can I do??? I've got a non-trivial amount of data that I cannot afford 
to lose!! HELP!..

Regards
MArCin - Thanks




view thread (9+ messages)  latest in thread

Message-ID: <99us31$cvk$1@news.tht.net>
Permalink:  ../99us31$cvk$1@news.tht.net/
Also on:    postgresql.org/message-id/99us31$cvk$1@news.tht.net

 · 

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-sql@postgresql.org
  Cc: kowalski@datrix.co.za, pgsql-admin@postgresql.org.pgsql-general
  Subject: Re: pg_dump potential bug -UNIQUE INDEX on PG_SHADOW Dont!! HELP
  In-Reply-To: <99us31$cvk$1@news.tht.net>
  References: <18053.985792976@sss.pgh.pa.us> <99us31$cvk$1@news.tht.net>

* 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