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

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



view thread (13+ messages)  latest in thread

Message-ID: <20030729162256.GA5304@magicbluesmoke.net>
Permalink:  ../20030729162256.GA5304@magicbluesmoke.net/
Also on:    postgresql.org/message-id/20030729162256.GA5304@magicbluesmoke.net

 · 

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

* 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