pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Maarten Boekhold <maarten.boekhold@tibcofinance.com>
To: pgsql-admin@postgresql.org
Subject: Fixing db after missing index
Date: Mon, 17 Apr 2000 09:45:23 +0200
Message-ID: <38FAC113.9CD59784@tibcofinance.com> (raw)

Hi,

Yesterday I needed to do a big update to one of our databases, and as I always
do
with big updates, I first deleted the indices for the main table (it's faster
this
way). However, one index failed to delete cos the disk file was gone. Dunno
what happened, but I suppose I brought that one on myself.

Anyway, instead of being smart and doing 'touch index_file', I decided to mess
around
in the system tables. So I deleted that index from pg_class and pg_index. This
helped, I could use the table again (it had become unusable), and recreated
the indices.

Despite it working correctly now, I still get a message relating to the old
index when I do a vacuum. The first time I got an error message, before I
messed around with pg_class and pg_index, the message included an oid number,
which I have written down. I searched tru the other system tables, and foung
one other reference to that number, in pg_attribute. Should I delete that row
too? More generally, which tables reference an index?

Maarten


-- 

Maarten Boekhold, maarten.boekhold@tibcofinance.com
TIBCO Finance Technology Inc.
"Sevilla" Building
Entrada 308
1096 ED Amsterdam, The Netherlands
tel: +31 20 6601000 (direct: +31 20 6601066)
fax: +31 20 6601005
http://www.tibcofinance.com



Message-ID: <38FAC113.9CD59784@tibcofinance.com>
Permalink:  ../38FAC113.9CD59784@tibcofinance.com/
Also on:    postgresql.org/message-id/38FAC113.9CD59784@tibcofinance.com

 · 

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: maarten.boekhold@tibcofinance.com
  Subject: Re: Fixing db after missing index
  In-Reply-To: <38FAC113.9CD59784@tibcofinance.com>
  References: <38FAC113.9CD59784@tibcofinance.com>

* 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