Re: Query plan question, and a memory leak - Mailing list pgsql-general

From Tom Lane
Subject Re: Query plan question, and a memory leak
Date
Msg-id 3618.1044249742@sss.pgh.pa.us
Whole thread Raw
In response to Re: Query plan question, and a memory leak  (Greg Stark <gsstark@mit.edu>)
Responses Re: Query plan question, and a memory leak  (Greg Stark <gsstark@mit.edu>)
List pgsql-general
Greg Stark <gsstark@mit.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

pgsql-general by date:

Previous
From: Ryan VanderBijl
Date:
Subject: commit errors
Next
From: Greg Stark
Date:
Subject: Re: Query plan question, and a memory leak