From: | PFC <lists(at)peufeu(dot)com> |
---|---|
To: | "Richard Huxton" <dev(at)archonet(dot)com>, "Luke Lonergan" <LLonergan(at)greenplum(dot)com> |
Cc: | albert(at)sedifa(dot)com, pgsql-performance(at)postgresql(dot)org |
Subject: | Re: Posible planner improvement? |
Date: | 2008-05-21 16:18:27 |
Message-ID: | op.ubih81yvcigqcu@apollo13.peufeu.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-performance |
On Wed, 21 May 2008 15:09:49 +0200, Richard Huxton <dev(at)archonet(dot)com>
wrote:
> Luke Lonergan wrote:
>> The problem is that the implied join predicate is not being
>> propagated. This is definitely a planner deficiency.
>
> IIRC only equality conditions are propagated and gt, lt, between aren't.
> I seem to remember that the argument given was that the cost of
> checking for the ability to propagate was too high for the frequency
> when it ocurred.
>
> Of course, what was true for code and machines of 5 years ago might not
> be so today.
>
Suggestion : when executing a one-off sql statement, optimizer should try
to offer "best effort while being fast" ; when making a plan that will be
reused many times (ie PREPARE, functions...) planning time could be
muuuuch longer...
From | Date | Subject | |
---|---|---|---|
Next Message | Albert Cervera Areny | 2008-05-21 16:22:42 | Re: Posible planner improvement? |
Previous Message | Pavel Stehule | 2008-05-21 16:12:27 | proposal: table functions and plpgsql |
From | Date | Subject | |
---|---|---|---|
Next Message | Albert Cervera Areny | 2008-05-21 16:22:42 | Re: Posible planner improvement? |
Previous Message | Richard Huxton | 2008-05-21 14:39:54 | Re: "Big O" notation for postgres? |