Re: Query plan question, and a memory leak

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Greg Stark <gsstark(at)mit(dot)edu>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Query plan question, and a memory leak
Date: 2003-02-03 06:59:34
Message-ID: 8415.1044255574@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Greg Stark <gsstark(at)mit(dot)edu> writes:
> Is there some way to force the optimizer not to substitute the subquery in the
> where clause?

You could try tinkering with the rules for invoking subquery_push_qual
in src/backend/optimizer/path/allpaths.c. This might be a case that
would fall under the note there wondering if pushing down can ever
result in a worse plan. I'm not sure though that we can tell the
difference reliably...

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Christoph Dalitz 2003-02-03 08:03:51 List online archives and spam
Previous Message Ryan VanderBijl 2003-02-03 06:21:01 Re: serialization errors