Re: Identical Queries - Mailing list pgsql-performance

From Chad Wagner
Subject Re: Identical Queries
Date
Msg-id 81961ff50703011309v43c0974eie31172e36f8460cd@mail.gmail.com
Whole thread Raw
In response to Re: Identical Queries  (Rob Schall <rschall@callone.net>)
List pgsql-performance
On 3/1/07, Rob Schall <rschall@callone.net> wrote:
There are 4 entries (wanted to make the playing field level for this
test). There are 2 with true for istf and 2 with false.

Then the difference here has to do with using orignum vs destnum as the join criteria.  There must be more intersections for orignum than destnum, or your statistics are so far out of whack.  It appears to be estimating 5M vs 500K for a result set, and naturally it chose a different plan.

pgsql-performance by date:

Previous
From: "Alex Deucher"
Date:
Subject: Re: strange performance regression between 7.4 and 8.1
Next
From: "Alex Deucher"
Date:
Subject: Re: strange performance regression between 7.4 and 8.1