Re: temporary indexes?

From: Jonathan Vanasco <postgres(at)2xlp(dot)com>
To: PostgreSQL mailing lists <pgsql-general(at)postgresql(dot)org>
Subject: Re: temporary indexes?
Date: 2015-10-21 19:27:37
Message-ID: 88D0BFAA-1263-4644-AE01-C2A08125B214@2xlp.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


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".

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message bricklen 2015-10-21 19:31:13 Re: ERROR: invalid page in block 1226710 of relation base/16750/27244
Previous Message Adrian Klaver 2015-10-21 19:05:06 Re: trouble downloading postgres 9.4 for RHEL 6.x