> 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