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 3E08BD1C4CD for ; Tue, 29 Jul 2003 14:38:48 +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 74961-01 for ; Tue, 29 Jul 2003 11:37:53 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 4285BD1C4C1 for ; Tue, 29 Jul 2003 11:38:46 -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 h6TEcoQ3021944; Tue, 29 Jul 2003 10:38:50 -0400 (EDT) To: "John P. Looney" Cc: postgres Subject: Re: Postgres db corrupted ? In-reply-to: <1059470890.5588.41.camel@cosimo.hosting365.ie> References: <1059470890.5588.41.camel@cosimo.hosting365.ie> Comments: In-reply-to "John P. Looney" message dated "29 Jul 2003 10:28:10 +0100" Date: Tue, 29 Jul 2003 10:38:50 -0400 Message-ID: <21943.1059489530@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/286 X-Sequence-Number: 9626 "John P. Looney" writes: > What's up here ? Google is deathly silent.=20 > bash-2.05a$ pg_dumpall > db.out > connected to template1... > dumping database "MyPgSQLTest"... > dumping database "bb1"... > dumping database "bbadmin"... > pg_dump: [archiver (db)] connection to database "bbadmin" failed: FATAL > 1: SetDatabaseEncoding(): invalid database encoding > pg_dump failed on bbadmin, exiting A quick-and-dirty nostrum that sometimes helps for this sort of thing is "vacuum full pg_database". (The idea is to get rid of dead tuples that a new backend might be accidentally picking instead of the live ones --- it has to read pg_database before it's joined the PROC array, which among other things means it can't tell 100% accurately which rows are really committed.) If no go, could we see the output of "select * from pg_database"? regards, tom lane