From: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> |
---|---|
To: | Jonathan Vanasco <postgres(at)2xlp(dot)com>, PostgreSQL mailing lists <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: temporary indexes? |
Date: | 2015-10-21 19:42:58 |
Message-ID: | 5627EAC2.9070008@aklaver.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 10/21/2015 12:27 PM, Jonathan Vanasco wrote:
>
> On Oct 21, 2015, at 2:59 PM, Jeff Janes wrote:
>> I think he means more like:
>>
>> create temporary table temp_test(id int, fld_1 varchar);
>> create temporary index on permanent_table (fld_1);
>>
>> select something from temp_test join permanent_table using (fld_1) where a=b;
>> select something_else from temp_test join permanent_table using (fld_1) where c=d;
>
> Yes. That's exactly what I mean: A "temporary index" on a "permanent table" , which expires in the same manner of a "temporary table".
I misunderstood then. The only thing I can think of is to wrap in a
transaction, though that presents other issues with open transactions
and/or errors in the transaction.
>
>
>
>
--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2015-10-21 19:52:08 | Re: ERROR: invalid page in block 1226710 of relation base/16750/27244 |
Previous Message | melvin6925 | 2015-10-21 19:39:14 | Re: temporary indexes? |