Re: Forcing materialize in the planner

From: Jack Christensen <jack(at)jackchristensen(dot)com>
To: Robert James <srobertjames(at)gmail(dot)com>
Cc: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Forcing materialize in the planner
Date: 2013-08-16 12:23:35
Message-ID: 520E19C7.2080909@jackchristensen.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Have you tried putting those components in a common table expression?
I'm not sure if it absolutely forces the materialization or not, but in
practice that has been my experience.

Robert James wrote:
> I have a query which, when I materialize by hand some of its
> components, runs 10x faster (including the time needed to
> materialize). Is there any way to force Postgres to do that? Or do I
> need to do this by hand using temp tables?
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Basavaraj 2013-08-16 13:35:55 need help
Previous Message salah jubeh 2013-08-16 11:24:32 Re: devide and summarize sql result (all)