Re: Performance question related with temporary tables

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Vilson farias" <vilson(dot)farias(at)digitro(dot)com(dot)br>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Performance question related with temporary tables
Date: 2002-05-08 20:37:31
Message-ID: 12309.1020890251@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"Vilson farias" <vilson(dot)farias(at)digitro(dot)com(dot)br> writes:
>> You just do it.

> Great, it's so simple... thanks Tom.

> I just have another two questions :

> Is the index automaticly removed when connection is closed?
> The index is visible only in the actual session, am I right?

Yup. An index on a temp table is temp in just the same way as the temp
table itself. There's no "TEMP" option in CREATE INDEX, it's just done
that way for you. (Any toast table needed is also handled correctly,
although the mechanism is slightly different.)

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Laurette Cisneros 2002-05-08 20:41:46 pg_ctl
Previous Message Bojan Belovic 2002-05-08 20:27:17 Re: db recovery (FATAL 2)