From: Tom Lane <tgl@sss.pgh.pa.us>
To: Vilson farias <vilson.farias@digitro.com.br>
Cc: pgsql-admin@postgresql.org
Subject: Re: Performance question related with temporary tables
Date: Wed, 08 May 2002 16:37:31 -0400
Message-ID: <12309.1020890251@sss.pgh.pa.us> (raw)
In-Reply-To: <006501c1f69d$6d6357d0$98a0a8c0@dgtac>
References: <002f01c1f691$8fcea560$98a0a8c0@dgtac>
<1901.1020867435@sss.pgh.pa.us>
<006501c1f69d$6d6357d0$98a0a8c0@dgtac>
"Vilson farias" <vilson.farias@digitro.com.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, vilson.farias@digitro.com.br
Subject: Re: Performance question related with temporary tables
In-Reply-To: <12309.1020890251@sss.pgh.pa.us>
References: <002f01c1f691$8fcea560$98a0a8c0@dgtac> <1901.1020867435@sss.pgh.pa.us> <006501c1f69d$6d6357d0$98a0a8c0@dgtac> <12309.1020890251@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox