Re: temporary table as a subset of an existing table and indexes - Mailing list pgsql-general

From Merlin Moncure
Subject Re: temporary table as a subset of an existing table and indexes
Date
Msg-id AANLkTikZdnrDza+-OaDTi7fkB49EPWqbQLr7D15-MR3k@mail.gmail.com
Whole thread Raw
In response to temporary table as a subset of an existing table and indexes  (Matthieu Huin <matthieu.huin@wallix.com>)
Responses Re: temporary table as a subset of an existing table and indexes  (Matthieu Huin <matthieu.huin@wallix.com>)
List pgsql-general
On Mon, Nov 8, 2010 at 12:15 PM, Matthieu Huin <matthieu.huin@wallix.com> wrote:
> Greetings all,
>
> I am trying to optimize SELECT queries on a large table (10M rows and more)
> by using temporary tables that are subsets of my main table, thus narrowing
> the search space to a more manageable size.
> Is it possible to transfer indices (or at least use the information from
> existing indices) from the big table to its subset in a reasonable amount of
> time ?

Are you sure that the benefit of creating scratch tables is worth the
overhead?   Can you give explain/analyze of the query you are trying
to optimize?

merlin

pgsql-general by date:

Previous
From: Scott Marlowe
Date:
Subject: Re: finding the other statement causing a sharelock
Next
From: John R Pierce
Date:
Subject: Re: Full Vacuum/Reindex vs autovacuum