Re: Indexes vs. cache flushes

From: Greg Stark <gsstark(at)mit(dot)edu>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Indexes vs. cache flushes
Date: 2006-01-19 07:32:48
Message-ID: 87u0c0vfj3.fsf@stark.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:

> This would still support REINDEX (which changes pg_class.relfilenode in
> order to replace the physical file) and ALTER INDEX SET TABLESPACE.
> But you couldn't make any meaningful changes in the definition of an
> index, such as changing its column set, operator classes, partial-index
> predicate, etc, except by dropping and recreating it.
>
> Now this is true today, and it doesn't seem likely to me that we'd
> ever want to relax it (since any such change would probably require
> rebuilding the index anyway). But does anyone see that differently?

The only example that comes to mind of something you might want to be able to
twiddle and wouldn't expect to be a slow operation is making a unique index a
non-unique index.

--
greg

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2006-01-19 07:46:11 Re: Indexes vs. cache flushes
Previous Message Martijn van Oosterhout 2006-01-19 07:27:17 Re: Surrogate keys (Was: enums)