From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Cees van de Griend <cees-list(at)griend(dot)xs4all(dot)nl> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Preformance |
Date: | 2002-02-02 22:09:58 |
Message-ID: | 19030.1012687798@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Cees van de Griend <cees-list(at)griend(dot)xs4all(dot)nl> writes:
> What can possible be the cause of the difference in preformance?
Probably the VACUUM ANALYZE statistics changed just enough to push the
planner into making the wrong choice. You could experiment with doing
"set enable_nestloop to off" and then EXPLAIN to see what the plan and
cost are; I'll bet that the estimated cost of the hash plan is now
just fractionally more than that of the nestloop.
Of course, the *true* costs are very different, which is why I consider
this a planner estimation failure.
> Is is as simple as a wrong choice of the planner and can a wrong choice
> have such huge effect?
Yes, and yes.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2002-02-02 22:35:42 | Re: PostgreSQL transaction locking problem |
Previous Message | Jeff Martin | 2002-02-02 22:04:18 | Indices for foreign keys |