Re: When/if to Reindex - Mailing list pgsql-performance

From Tom Lane
Subject Re: When/if to Reindex
Date
Msg-id 6144.1187991837@sss.pgh.pa.us
Whole thread Raw
In response to Re: When/if to Reindex  (Gregory Stark <stark@enterprisedb.com>)
List pgsql-performance
Gregory Stark <stark@enterprisedb.com> writes:
> Should reindex be doing an in-place update?

Not if you'd like it to be crash-safe.

> Alternatively, why does the planner need access to the pg_class entry and not
> just the pg_index record?

For one thing, to find out how big the index is ... though if we could
get around that problem, it might indeed be possible to treat the
pg_index records as property of the parent table not the index itself,
which would give us license to read them without locking the index.

            regards, tom lane

pgsql-performance by date:

Previous
From: Tom Lane
Date:
Subject: Re: significant vacuum issues - looking for suggestions
Next
From: "Benjamin Arai"
Date:
Subject: Partioning tsearch2 a table into chunks and accessing via views