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 05:22:22
Message-ID: 3618.1044249742@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:
> However I tested those queries with some data and things really do seem to be
> behaving oddly. It takes nearly twice as long to run the version with the
> where clause and duplicate subplan.

Yes, they will both be executed --- there's no
duplicate-subexpression-elimination logic...

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Greg Stark 2003-02-03 05:53:39 Re: Query plan question, and a memory leak
Previous Message Ryan VanderBijl 2003-02-03 05:21:00 commit errors