Re: REINDEX SYSTEM tables ... index disappearing ... ?

From: Andrew - Supernews <andrew+nonews(at)supernews(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: REINDEX SYSTEM tables ... index disappearing ... ?
Date: 2005-06-13 19:48:27
Message-ID: slrndaroob.2799.andrew+nonews@trinity.supernews.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2005-06-13, "Marc G. Fournier" <scrappy(at)postgresql(dot)org> wrote:
>
> 'k, I've been playing around with the REINDEX stuff, and either I'm
> mis-understanding something, or there is a bug in 7.4.x ...
>
> If I do a:
>
> REINDEX TABLE pg_statistic;
>
> my 'on disk' INDEX is disappearing, altho there is no errors being
> generated:
>
> # select oid,relname from pg_class where relname like 'pg_statistic%';
> oid | relname
> -------+------------------------------
> 16408 | pg_statistic
> 16647 | pg_statistic_relid_att_index
> (2 rows)
>
> But, on disk:
>
> $ ls -l 16408 16647
> ls: 16647: No such file or directory

The relfilenode of the index relation changes, so it's no longer equal to
the OID. If you look on-disk for the relfilenode, you will find it.

--
Andrew, Supernews
http://www.supernews.com - individual and corporate NNTP services

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Siebert 2005-06-13 20:01:55 Re: pg_dumpall not working?
Previous Message Josh Berkus 2005-06-13 19:36:12 Re: User Quota Implementation