X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 9C559D1C4C8 for ; Tue, 29 Jul 2003 17:28:18 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 84535-03 for ; Tue, 29 Jul 2003 14:27:19 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id B8AF4D1C4B9 for ; Tue, 29 Jul 2003 14:28:16 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h6THSGQ3002983; Tue, 29 Jul 2003 13:28:16 -0400 (EDT) To: "John P. Looney" Cc: postgres Subject: Re: Postgres db corrupted ? 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> Comments: In-reply-to "John P. Looney" message dated "29 Jul 2003 18:06:43 +0100" Date: Tue, 29 Jul 2003 13:28:16 -0400 Message-ID: <2982.1059499696@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/293 X-Sequence-Number: 9633 "John P. Looney" 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