pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: John P. Looney <valen@tuatha.org>
Cc: postgres <pgsql-admin@postgresql.org>
Subject: Re: Postgres db corrupted ?
Date: Tue, 29 Jul 2003 13:28:16 -0400
Message-ID: <2982.1059499696@sss.pgh.pa.us> (raw)
In-Reply-To: <1059498403.7984.193.camel@cosimo.hosting365.ie>
References: <1059470890.5588.41.camel@cosimo.hosting365.ie>
	<21943.1059489530@sss.pgh.pa.us>
	<20030729162256.GA5304@magicbluesmoke.net>
	<29907.1059497704@sss.pgh.pa.us>
	<1059498403.7984.193.camel@cosimo.hosting365.ie>

"John P. Looney" <valen@tuatha.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



view thread (13+ messages)  latest in thread

Message-ID: <2982.1059499696@sss.pgh.pa.us>
Permalink:  ../2982.1059499696@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2982.1059499696@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, valen@tuatha.org
  Subject: Re: Postgres db corrupted ?
  In-Reply-To: <2982.1059499696@sss.pgh.pa.us>
  References: <1059470890.5588.41.camel@cosimo.hosting365.ie> <21943.1059489530@sss.pgh.pa.us> <20030729162256.GA5304@magicbluesmoke.net> <29907.1059497704@sss.pgh.pa.us> <1059498403.7984.193.camel@cosimo.hosting365.ie> <2982.1059499696@sss.pgh.pa.us>

* 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