pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedHelp - Index on pg_shadow corruption!! Database down!!
2+ messages / 2 participants
[nested] [flat]
* Help - Index on pg_shadow corruption!! Database down!!
@ 2001-03-30 11:33 Marcin Kowalski <kowalski@datrix.co.za>
2001-03-31 09:11 ` Re: Help - Index on pg_shadow corruption!! Database down!! Andrea Fanfani <a.fanfani@mixad.it>
0 siblings, 1 reply; 2+ messages in thread
From: Marcin Kowalski @ 2001-03-30 11:33 UTC (permalink / raw)
To: pgsql-admin
Hi Concerned CItizens
I have a slight (BIG) problem, I can no longer connect to my a certain
database after erroneously creating a unique index on it pg_shadow file.
Below is the exerpt from a previous post that I did but on another
unrelated (semi) thread.
I did this in order to prevent duplicate entries occuring in 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
Aside:
I am running PG7.1RC1 on another machine, so far It is averaginh 1360
selects per second over 6 tables (not always returning data though). This
is pretty damn fast, (13 Million of them till now about 37 million to go
:-) )
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Help - Index on pg_shadow corruption!! Database down!!
2001-03-30 11:33 Help - Index on pg_shadow corruption!! Database down!! Marcin Kowalski <kowalski@datrix.co.za>
@ 2001-03-31 09:11 ` Andrea Fanfani <a.fanfani@mixad.it>
0 siblings, 0 replies; 2+ messages in thread
From: Andrea Fanfani @ 2001-03-31 09:11 UTC (permalink / raw)
To: pgsql-admin; kolwalski@datrix.co.za
On Fri, Mar 30, 2001 at 01:33:39PM +0200, Marcin Kowalski wrote:
> Hi Concerned CItizens
[...]
Maybe but *without* warranty you can install another copy of
postgresql, take the pg_shadow file and substitute to the
corrupted file.
Make a total backup first, imho is a high risk change.
Regards
a.f.
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2001-03-31 09:11 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-03-30 11:33 Help - Index on pg_shadow corruption!! Database down!! Marcin Kowalski <kowalski@datrix.co.za>
2001-03-31 09:11 ` Andrea Fanfani <a.fanfani@mixad.it>
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