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 streaming I/O in ANALYZE.
Date: Mon, 08 Apr 2024 01:20:20 +0000
Message-ID: <E1rtdgJ-00135G-L1@gemulon.postgresql.org> (raw)

Use streaming I/O in ANALYZE.

The ANALYZE command prefetches and reads sample blocks chosen by a
BlockSampler algorithm. Instead of calling [Prefetch|Read]Buffer() for
each block, ANALYZE now uses the streaming API introduced in b5a9b18cd0.

Author: Nazir Bilal Yavuz <byavuz81@gmail.com>
Reviewed-by: Melanie Plageman <melanieplageman@gmail.com>
Reviewed-by: Andres Freund <andres@anarazel.de>
Reviewed-by: Jakub Wartak <jakub.wartak@enterprisedb.com>
Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi>
Reviewed-by: Thomas Munro <thomas.munro@gmail.com>
Discussion: https://postgr.es/m/flat/CAN55FZ0UhXqk9v3y-zW_fp4-WCp43V8y0A72xPmLkOM%2B6M%2BmJg%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/041b96802efa33d2bc9456f2ad946976b92b5ae1

Modified Files
--------------
src/backend/access/heap/heapam_handler.c | 29 ++++++-----
src/backend/commands/analyze.c           | 85 ++++++++++----------------------
src/include/access/heapam.h              |  5 +-
3 files changed, 43 insertions(+), 76 deletions(-)



Message-ID: <E1rtdgJ-00135G-L1@gemulon.postgresql.org>
Permalink:  ../E1rtdgJ-00135G-L1@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1rtdgJ-00135G-L1@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: tmunro@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Use streaming I/O in ANALYZE.
  In-Reply-To: <E1rtdgJ-00135G-L1@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