From: | Michael Lewis <mlewis(at)entrata(dot)com> |
---|---|
To: | Peter Coppens <peter(dot)coppens(at)datylon(dot)com> |
Cc: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, PostgreSQL General <pgsql-general(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Execution plan does not use index |
Date: | 2020-11-11 14:43:19 |
Message-ID: | CAHOFxGoyxjagEGtGwciNc90PQPHcrW7MnQMOUm14T_P69f02Ng@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Wed, Nov 11, 2020, 7:30 AM Peter Coppens <peter(dot)coppens(at)datylon(dot)com>
wrote:
>
> > It seems odd to me to not do any basic adjustment of random_page_cost
> though. It isn't a magic number that the core team know to be perfect. It
> is a baseline that is likely to be quite different for each use case and
> server config. While there are no hard and fast rules and absolute right
> answers, it seems prudent to at least follow the advice of the community
> and lower it a ways if storage is ssd style and/or cache hits are quite
> high.
> Ic. Well I don’t mine experimenting with it, and will certainly remember
> it next time. I guess I was demotivated because I read lot’s of warnings
> but these might have been about disabling sequential scans and not about
> page cost settings.
>
Ah yes. Don't handicap the system by removing a join or scan type. However,
simply customizing costs that are used to decide between path A and path B
when planning how to execute queries, that can definitely can be helpful to
get better plans overall. Good luck!
>
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Coppens | 2020-11-11 14:45:35 | Re: Execution plan does not use index |
Previous Message | Peter J. Holzer | 2020-11-11 14:33:23 | Re: database aliasing options ? |