Re: Temporary tables and indexes - Mailing list pgsql-sql

From Josh Berkus
Subject Re: Temporary tables and indexes
Date
Msg-id web-1776588@davinci.ethosmedia.com
Whole thread Raw
In response to Re: Temporary tables and indexes  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
Tom,

> > I'm kind of surprised that it's possible to index a temporary
> table.
> > There's not much point in doing so.
> 
> Why not?  You seem to be equating "temporary" with "small", but I
> don't
> see why that must be so.

Nah.  I'm equating "temporary" with "query twice and throw away", which
isn't necessarily what everyone else does.

BTW, Ludwig, in postgresql versions < 7.2.0, I noticed that sometimes
indexes didn't seem to completely go away (i.e. I would get a name
conflict if I tried to drop & re-create in the same transaction)
without a VACUUM.  If you're using 7.1.3, you should upgrade for this
reason.

-Josh Berkus



pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: Temporary tables and indexes
Next
From: Richard Huxton
Date:
Subject: Re: Problems Formulating a SELECT