From: | Jeff Amiel <becauseimjeff(at)yahoo(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org, David Johnston <polobo(at)yahoo(dot)com> |
Subject: | Re: Oddball data distribution giving me planner headaches |
Date: | 2011-12-02 22:20:33 |
Message-ID: | 1322864433.23717.YahooMailClassic@web65513.mail.ac4.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
--- On Fri, 12/2/11, David Johnston <polobo(at)yahoo(dot)com> wrote:
> --------------------------------------------------------
>
> Can you wrap the query into an SQL or PL/pgSQL function so
> that, at least,
> then planner will not be able to see the embedded plan info
> in the outer
> queries? You use-case may allow you to create one or
> more VIEWs wrapping
> the function call with pre-determined parameters so that
> you do not lose the
> ability to write simple select queries without the need for
> explicit
> function calls.
>
> No idea how that would impact the planner for the other
> queries but maybe
> worth a try while waiting for someone more knowledgeable
> than myself to
> respond.
I had actually considered this...because you can define what the 'row estimate' is for a function....except in my case, I have some dynamic inputs that would change what those estimates would need to be.
Thanks for the help though!
From | Date | Subject | |
---|---|---|---|
Next Message | Jeff Amiel | 2011-12-02 22:22:48 | Re: Oddball data distribution giving me planner headaches |
Previous Message | David Johnston | 2011-12-02 22:15:36 | Re: Oddball data distribution giving me planner headaches |