Re: [SQL] qurey plan and indices

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: Vadim Mikheev <vadim(at)krs(dot)ru>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Patrick Giagnocavo <a222(at)redrose(dot)net>, pgsql-sql(at)postgreSQL(dot)org
Subject: Re: [SQL] qurey plan and indices
Date: 1999-08-06 02:33:32
Message-ID: 199908060233.WAA21522@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message John Duperon 1999-08-06 18:22:29 Function, trigger problem with PL/pgSQL
Previous Message Vadim Mikheev 1999-08-06 02:09:08 Re: [SQL] qurey plan and indices