pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Use pg_pread() and pg_pwrite() in slru.c.
Date: Sat, 01 Aug 2020 12:24:03 +0000
Message-ID: <E1k1qYV-0004Z9-5G@gemulon.postgresql.org> (raw)

Use pg_pread() and pg_pwrite() in slru.c.

This avoids lseek() system calls at every SLRU I/O, as was
done for relation files in commit c24dcd0c.

Reviewed-by: Ashwin Agrawal <aagrawal@pivotal.io>
Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/CA%2BhUKG%2Biqke4uTRFj8D8uEUUgj%2BRokPSp%2BCWM6YYzaaamG9Wvg%40mail.gmail.com
Discussion: https://postgr.es/m/CA%2BhUKGJ%2BoHhnvqjn3%3DHro7xu-YDR8FPr0FL6LF35kHRX%3D_bUzg%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e2b37d9e7cabc90633c4bd822e1bcfdd1bda44c4

Modified Files
--------------
src/backend/access/transam/slru.c | 25 ++++---------------------
1 file changed, 4 insertions(+), 21 deletions(-)



Message-ID: <E1k1qYV-0004Z9-5G@gemulon.postgresql.org>
Permalink:  ../E1k1qYV-0004Z9-5G@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1k1qYV-0004Z9-5G@gemulon.postgresql.org

 · 

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 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-committers@postgresql.org
  Cc: tmunro@postgresql.org
  Subject: Re: pgsql: Use pg_pread() and pg_pwrite() in slru.c.
  In-Reply-To: <E1k1qYV-0004Z9-5G@gemulon.postgresql.org>
  References: <E1k1qYV-0004Z9-5G@gemulon.postgresql.org>

* 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