Re: Postgres db corrupted ?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "John P(dot) Looney" <valen(at)tuatha(dot)org>
Cc: postgres <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Postgres db corrupted ?
Date: 2003-07-29 17:28:16
Message-ID: 2982.1059499696@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"John P. Looney" <valen(at)tuatha(dot)org> writes:
> OK; is there an already existing table that should have those entries
> in it ? As a postgres novice, does that mean that these broken tables
> aren't accessible ?

pg_database *is* the table that should have those entries in it. I'm
not real sure how you got into this state, but given that you are in it,
the "SetDatabaseEncoding" failure will probably occur when you try to
connect to any of the databases with the bad pg_database rows.

Fortunately, since that table is shared across databases, you can fix it
from a connection to any of the non-broken databases (like template1).

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Judy Chun 2003-07-29 18:08:57 handling different languages in a database
Previous Message Devrim GUNDUZ 2003-07-29 17:23:10 Re: changing ownership of db