Re: Should we update the random_page_cost default value?
От
Andres Freund
Тема
Re: Should we update the random_page_cost default value?
Дата
Msg-id
wc7mgalaplotpetwcackcbrm4lwdkvyajdcsi2gsslhknfavzi@t5jo47nnyppa
Ответ на
Re: Should we update the random_page_cost default value? (Tomas Vondra)
Список
Дерево обсуждения
Should we update the random_page_cost default value? Tomas Vondra <tomas@vondra.me>
Re: Should we update the random_page_cost default value? Tom Lane <tgl@sss.pgh.pa.us>
Re: Should we update the random_page_cost default value? Laurenz Albe <laurenz.albe@cybertec.at>
Re: Should we update the random_page_cost default value? Tom Lane <tgl@sss.pgh.pa.us>
Re: Should we update the random_page_cost default value? Laurenz Albe <laurenz.albe@cybertec.at>
Re: Should we update the random_page_cost default value? Andres Freund <andres@anarazel.de>
Re: Should we update the random_page_cost default value? Tomas Vondra <tomas@vondra.me>
Re: Should we update the random_page_cost default value? Jakub Wartak <jakub.wartak@enterprisedb.com>
Re: Should we update the random_page_cost default value? Ants Aasma <ants.aasma@cybertec.at>
Re: Should we update the random_page_cost default value? Tomas Vondra <tomas@vondra.me>
Re: Should we update the random_page_cost default value? Tomas Vondra <tomas@vondra.me>
Re: Should we update the random_page_cost default value? Michael Banck <mbanck@gmx.net>
Re: Should we update the random_page_cost default value? Tomas Vondra <tomas@vondra.me>
Re: Should we update the random_page_cost default value? Bruce Momjian <bruce@momjian.us>
Re: Should we update the random_page_cost default value? David Rowley <dgrowleyml@gmail.com>
Re: Should we update the random_page_cost default value? Tomas Vondra <tomas@vondra.me>
Re: Should we update the random_page_cost default value? Tomas Vondra <tomas@vondra.me>
Re: Should we update the random_page_cost default value? wenhui qiu <qiuwenhuifx@gmail.com>
Re: Should we update the random_page_cost default value? David Rowley <dgrowleyml@gmail.com>
Re: Should we update the random_page_cost default value? Pavel Stehule <pavel.stehule@gmail.com>
Re: Should we update the random_page_cost default value? Tomas Vondra <tomas@vondra.me>
Re: Should we update the random_page_cost default value? Laurenz Albe <laurenz.albe@cybertec.at>
Re: Should we update the random_page_cost default value? Tomas Vondra <tomas@vondra.me>
Re: Should we update the random_page_cost default value? Andres Freund <andres@anarazel.de>
Re: Should we update the random_page_cost default value? Andres Freund <andres@anarazel.de>
Re: Should we update the random_page_cost default value? Bruce Momjian <bruce@momjian.us>
Re: Should we update the random_page_cost default value? Bruce Momjian <bruce@momjian.us>
Re: Should we update the random_page_cost default value? Robert Haas <robertmhaas@gmail.com>
Re: Should we update the random_page_cost default value? Bruce Momjian <bruce@momjian.us>
Re: Should we update the random_page_cost default value? Bruce Momjian <bruce@momjian.us>
Re: Should we update the random_page_cost default value? Jim Nasby <jnasby@upgrade.com>
Re: Should we update the random_page_cost default value? Andres Freund <andres@anarazel.de>
Re: Should we update the random_page_cost default value? Bruce Momjian <bruce@momjian.us>
Re: Should we update the random_page_cost default value? Andres Freund <andres@anarazel.de>
Re: Should we update the random_page_cost default value? Robert Treat <rob@xzilla.net>
Re: Should we update the random_page_cost default value? Greg Sabino Mullane <htamfids@gmail.com>
Re: Should we update the random_page_cost default value? Robert Haas <robertmhaas@gmail.com>
Re: Should we update the random_page_cost default value? Tomas Vondra <tomas@vondra.me>
Re: Should we update the random_page_cost default value? Robert Haas <robertmhaas@gmail.com>
Re: Should we update the random_page_cost default value? Tomas Vondra <tomas@vondra.me>
Re: Should we update the random_page_cost default value? Andres Freund <andres@anarazel.de>
Re: Should we update the random_page_cost default value? Tomas Vondra <tomas@vondra.me>
Re: Should we update the random_page_cost default value? Robert Haas <robertmhaas@gmail.com>
Re: Should we update the random_page_cost default value? Tomas Vondra <tomas@vondra.me>
Re: Should we update the random_page_cost default value? Robert Haas <robertmhaas@gmail.com>
Re: Should we update the random_page_cost default value? Tomas Vondra <tomas@vondra.me>
Re: Should we update the random_page_cost default value? Andres Freund <andres@anarazel.de>
Re: Should we update the random_page_cost default value? Tomas Vondra <tomas@vondra.me>
Re: Should we update the random_page_cost default value? Andres Freund <andres@anarazel.de>
Re: Should we update the random_page_cost default value? David Rowley <dgrowleyml@gmail.com>
Re: Should we update the random_page_cost default value? Tomas Vondra <tomas@vondra.me>
Re: Should we update the random_page_cost default value? Tomas Vondra <tomas@vondra.me>
Re: Should we update the random_page_cost default value? Andres Freund <andres@anarazel.de>
Re: Should we update the random_page_cost default value? Greg Sabino Mullane <htamfids@gmail.com>
Re: Should we update the random_page_cost default value? Andres Freund <andres@anarazel.de>
Re: Should we update the random_page_cost default value? Peter Geoghegan <pg@bowt.ie>
Re: Should we update the random_page_cost default value? Tomas Vondra <tomas@vondra.me>
Re: Should we update the random_page_cost default value? Tomas Vondra <tomas@vondra.me>
Re: Should we update the random_page_cost default value? Tomas Vondra <tomas@vondra.me>
Re: Should we update the random_page_cost default value? Andres Freund <andres@anarazel.de>
Re: Should we update the random_page_cost default value? Tomas Vondra <tomas@vondra.me>
Re: Should we update the random_page_cost default value? Andres Freund <andres@anarazel.de>
Re: Should we update the random_page_cost default value? Tomas Vondra <tomas@vondra.me>
Re: Should we update the random_page_cost default value? Tomas Vondra <tomas@vondra.me>
Re: Should we update the random_page_cost default value? Andres Freund <andres@anarazel.de>
Re: Should we update the random_page_cost default value? Tomas Vondra <tomas@vondra.me>
Re: Should we update the random_page_cost default value? Andres Freund <andres@anarazel.de>
Re: Should we update the random_page_cost default value? Tomas Vondra <tomas@vondra.me>
Hi, On 2025-10-07 14:08:27 +0200, Tomas Vondra wrote: > On 10/7/25 01:56, Andres Freund wrote: > > A correlated index scan today will not do IO combining, despite being > > accounted as seq_page_cost. So just doing individual 8kB IOs actually seems to > > be the appropriate comparison. Even with table fetches in index scans doing > > IO combining as part by your work, the reads of the index data itself won't be > > combined. And I'm sure other things won't be either. > > > > But that's the point. If the sequential reads do I/O combining and index > scans don't (and I don't think that will change anytime soon), then that > makes sequential I/O much more efficient / cheaper. And we better > reflect that in the cost somehow. Maybe increasing the random_page_cost > is not the right/best solution? That's possible. The table fetch portion of an index scan uses seq_page_cost too, with the degree of it being used determined by the correlation (c.f. cost_index()). Given that we use random page cost and sequential page cost both for index scan and non-index scan related costs, I just don't see how it can make sense to include index related overheads in random_page_cost but not seq_page_cost. Greetings, Andres Freund
В списке pgsql-hackers по дате отправления
От: Andres Freund
Дата: