Can I force a query plan to materialise part? - Mailing list pgsql-general

From Toby Corkindale
Subject Can I force a query plan to materialise part?
Date
Msg-id 506A5283.1060307@strategicdata.com.au
Whole thread Raw
Responses Re: Can I force a query plan to materialise part?  (David Johnston <polobo@yahoo.com>)
Re: Can I force a query plan to materialise part?  (Ondrej Ivanič <ondrej.ivanic@gmail.com>)
List pgsql-general
Hi,
Is there any way to force the query planner to do a materialisation stage?

I have a query that joins two views, and takes 28 seconds to run.
However if I create temporary tables that contain the contents of each
view, and then join them, the total time is 1.3 seconds.

Is there a way to hint to the query planner that it should be taking
that approach?

Thanks,
Toby


pgsql-general by date:

Previous
From: Craig Ringer
Date:
Subject: pg_typeof equivalent for numeric scale, numeric/timestamp precision?
Next
From: David Johnston
Date:
Subject: Re: Can I force a query plan to materialise part?