Re: [HACKERS] Indexes vs. cache flushes

2006-01-19 Thread Tom Lane
"Jim C. Nasby" <[EMAIL PROTECTED]> writes: > How would this affect changing the type of a column? It doesn't, because we drop and rebuild indexes completely during ALTER COLUMN TYPE. regards, tom lane ---(end of broadcast)--

Re: [HACKERS] Indexes vs. cache flushes

2006-01-19 Thread Jim C. Nasby
On Thu, Jan 19, 2006 at 02:46:11AM -0500, Tom Lane wrote: > Greg Stark <[EMAIL PROTECTED]> writes: > > Tom Lane <[EMAIL PROTECTED]> writes: > >> But you couldn't make any meaningful changes in the definition of an > >> index, such as changing its column set, operator classes, partial-index > >> pre

Re: [HACKERS] Indexes vs. cache flushes

2006-01-19 Thread Martijn van Oosterhout
On Thu, Jan 19, 2006 at 02:46:11AM -0500, Tom Lane wrote: > The concerns that I find more interesting are changes in the underlying > objects. We don't have an ALTER OPERATOR CLASS, much less an ALTER > ACCESS METHOD, but it's certainly theoretically possible to change the > definition of a suppor

Re: [HACKERS] Indexes vs. cache flushes

2006-01-18 Thread Tom Lane
Greg Stark <[EMAIL PROTECTED]> writes: > Tom Lane <[EMAIL PROTECTED]> writes: >> 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. > The only examp

Re: [HACKERS] Indexes vs. cache flushes

2006-01-18 Thread Greg Stark
Tom Lane <[EMAIL PROTECTED]> 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, ope

[HACKERS] Indexes vs. cache flushes

2006-01-18 Thread Tom Lane
I've been working on getting the system to pass regression tests cleanly when forcing a cache flush at every possible instant. The main tests pass now (in 8.1 --- HEAD remains broken pending lookup_rowtype_tupdesc fix), but contrib is still crashing. On investigation the problem turns out to be i