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 86028D1C4D5 for ; Tue, 29 Jul 2003 16:23:17 +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 78262-08 for ; Tue, 29 Jul 2003 13:22:17 -0300 (ADT) Received: from mail.magicbluesmoke.net (midir.magicbluesmoke.com [217.114.170.62]) by svr1.postgresql.org (Postfix) with ESMTP id 03292D1C4B8 for ; Tue, 29 Jul 2003 13:23:15 -0300 (ADT) Received: from midir.magicbluesmoke.com (localhost [127.0.0.1]) by mail.magicbluesmoke.net (Postfix) with ESMTP id 4712AE7B1; Tue, 29 Jul 2003 17:22:57 +0100 (IST) Received: (from valen@localhost) by midir.magicbluesmoke.com (8.12.8/8.12.8/Submit) id h6TGMuvP005350; Tue, 29 Jul 2003 17:22:56 +0100 X-Authentication-Warning: midir.magicbluesmoke.com: valen set sender to valen@magicbluesmoke.net using -f Date: Tue, 29 Jul 2003 17:22:56 +0100 From: "John P. Looney" To: Tom Lane Cc: postgres Subject: Re: Postgres db corrupted ? Message-ID: <20030729162256.GA5304@magicbluesmoke.net> Reply-To: valen@tuatha.org References: <1059470890.5588.41.camel@cosimo.hosting365.ie> <21943.1059489530@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <21943.1059489530@sss.pgh.pa.us> User-Agent: Mutt/1.4.1i X-OS: Red Hat Linux 9/Linux 2.4.20-19.9 X-URL: http://www.redbrick.dcu.ie/~valen X-GnuPG-publickey: http://www.redbrick.dcu.ie/~valen/public.asc X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/288 X-Sequence-Number: 9628 On Tue, Jul 29, 2003 at 10:38:50AM -0400, Tom Lane mentioned: > 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.) Ah, OK. That's the sort of help I was hoping to get. Alas, for very different reasons (I'd run out of ideas), I'd run that myself, with no gain. > If no go, could we see the output of "select * from pg_database"? Yep, no worries... postgres=# select * from pg_database; datname | datdba | encoding | datistemplate | datallowconn | datlastsysoid | datvacuumxid | datfrozenxid | datpath -----------------+--------+----------+---------------+--------------+---------------+--------------+--------------+--------- pguser | | 0 | f | t | 16554 | 611746 | 3221837219 | phpuser-654937 | | 0 | f | t | 16554 | 611746 | 3221837219 | gestr-654937 | | 0 | f | t | 16554 | 611746 | 3221837219 | template0 | 1 | 0 | t | f | 16554 | 49 | 49 | postgres | 1 | 0 | f | t | 16554 | 658793 | 658793 | rob-654937 | | 0 | f | t | 16554 | 611746 | 3221837219 | template1 | 1 | 0 | t | t | 16554 | 611746 | 3221837219 | testtest | 28 | 0 | f | t | 16554 | 49 | 49 | dsitestogo | 33 | 0 | f | t | 16554 | 49 | 49 | bb1 | 36 | 0 | f | t | 16554 | 49 | 49 | carlstest | 37 | 0 | f | t | 16554 | 49 | 49 | pgdbase | 38 | 0 | f | t | 16554 | 49 | 49 | novadance | 41 | 0 | f | t | 16554 | 49 | 49 | MyPgSQLTest | 43 | 0 | f | t | 16554 | 49 | 49 | forum | 45 | 0 | f | t | 16554 | 49 | 49 | ct2 | 48 | 0 | f | t | 16554 | 49 | 49 | directory | 49 | 0 | f | t | 16554 | 49 | 49 | faqsection | 50 | 0 | f | t | 16554 | 49 | 49 | demo | 51 | 0 | f | t | 16554 | 49 | 49 | planetepochdb | 53 | 0 | f | t | 16554 | 49 | 49 | bbadmin | | 0 | f | t | 16554 | 49 | 49 | shanecody | | 0 | f | t | 16554 | 49 | 49 | dmduffy-654937 | | 0 | f | t | 16554 | 49 | 49 | zozallen-665478 | | 0 | f | t | 16554 | 49 | 49 | zozhugh-665478 | | 0 | f | t | 16554 | 49 | 49 | zozea | 41 | 0 | f | t | 16554 | 49 | 49 | (26 rows) John