pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mathias Kunter <mathiaskunter@gmail.com>
Cc: pgsql-docs@lists.postgresql.org
Subject: Re: random_page_cost configuration parameter
Date: Tue, 28 Dec 2021 11:03:25 -0500
Message-ID: <1760891.1640707405@sss.pgh.pa.us> (raw)
In-Reply-To: <9271c072-e91d-4dc5-c0a9-197f47291671@gmail.com>
References: <9271c072-e91d-4dc5-c0a9-197f47291671@gmail.com>

Mathias Kunter <mathiaskunter@gmail.com> writes:
> the documentation of the random_page_cost configuration parameter says:

>> Although the system will let you set random_page_cost to less than
>> seq_page_cost, it is not physically sensible to do so.

> However, I don't think this statement is true. Consider the situation 
> where the randomly fetched pages are mostly (or even entirely) cached in 
> RAM, but where the sequentially fetched pages must be mostly read from 
> disk. An example for such a scenario is a database system which uses 
> RAM-cached indices.

I think fooling with effective_cache_size is a better way to model
that situation.

			regards, tom lane





view thread (4+ messages)  latest in thread

Message-ID: <1760891.1640707405@sss.pgh.pa.us>
Permalink:  ../1760891.1640707405@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1760891.1640707405@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mathiaskunter@gmail.com, pgsql-docs@lists.postgresql.org
  Subject: Re: random_page_cost configuration parameter
  In-Reply-To: <1760891.1640707405@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox