From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Tuning threshold for BAS_BULKREAD (large tables)
Date: Tue, 22 Jan 2019 02:36:28 -0600
Message-ID: <4154037a-50e1-7fbf-9521-3589ec975f42@gmail.com> (raw)
In-Reply-To: <D09B13F772D2274BB348A310EE3027C6412928@g01jpexmbkw24>
References: <D09B13F772D2274BB348A310EE3027C6412928@g01jpexmbkw24>
On 1/22/19 1:35 AM, Jamison, Kirk wrote:
>
> Hi,
>
> I have a source code-related question on BufferAccessStrategyType
> BAS_BULKREAD.
>
> Currently, this access method is set internally to cache tables larger
> than 1/4 of shared_buffers.
>
> src/backend/access/heap/heapam.c:initscan()
>
> if (!RelationUsesLocalBuffers(scan->rs_rd) &&
>
> scan->rs_nblocks > NBuffers / 4)
>
> ...
>
> /* During a rescan, keep the previous strategy object. */
>
> if (scan->rs_strategy == NULL)
>
> scan->rs_strategy = GetAccessStrategy(BAS_BULKREAD);
>
> Users can tune their shared_buffers size, but not able to tune this component.
>
> I'm just wondering how it affects the current workload when the table size
> is larger than the database.
>
How can a subset of the database be larger than the database?
--
Angular momentum makes the world go 'round.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: ronljohnsonjr@gmail.com
Subject: Re: Tuning threshold for BAS_BULKREAD (large tables)
In-Reply-To: <4154037a-50e1-7fbf-9521-3589ec975f42@gmail.com>
References: <D09B13F772D2274BB348A310EE3027C6412928@g01jpexmbkw24> <4154037a-50e1-7fbf-9521-3589ec975f42@gmail.com>
* 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