Re: Execution plan does not use index - Mailing list pgsql-general

From Michael Lewis
Subject Re: Execution plan does not use index
Date
Msg-id CAHOFxGoyxjagEGtGwciNc90PQPHcrW7MnQMOUm14T_P69f02Ng@mail.gmail.com
Whole thread Raw
In response to Re: Execution plan does not use index  (Peter Coppens <peter.coppens@datylon.com>)
Responses Re: Execution plan does not use index
List pgsql-general


On Wed, Nov 11, 2020, 7:30 AM Peter Coppens <peter.coppens@datylon.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!

pgsql-general by date:

Previous
From: "Peter J. Holzer"
Date:
Subject: Re: database aliasing options ?
Next
From: Peter Coppens
Date:
Subject: Re: Execution plan does not use index