Re: [SQL] qurey plan and indices - Mailing list pgsql-sql

From Bruce Momjian
Subject Re: [SQL] qurey plan and indices
Date
Msg-id 199908060233.WAA21522@candle.pha.pa.us
Whole thread Raw
In response to Re: [SQL] qurey plan and indices  (Vadim Mikheev <vadim@krs.ru>)
List pgsql-sql
> Not in all cases. First, to use InitPlan you would have to add 
> DISTINCT to subquery to avoid duplicates. Second, there is another
> way of optimization - cache/hash subquery results to avoid 
> re-execution of subquery plan. Planner should make decision what
> way to follow. 

Yep, that's what I was looking for.

--  Bruce Momjian                        |  http://www.op.net/~candle maillist@candle.pha.pa.us            |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-sql by date:

Previous
From: Vadim Mikheev
Date:
Subject: Re: [SQL] qurey plan and indices
Next
From: jpjansen@xs4all.nl
Date:
Subject: