pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Masahiko Sawada <msawada@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Allow specifying initial and maximum segment sizes for DSA.
Date: Wed, 27 Mar 2024 02:44:54 +0000
Message-ID: <E1rpJHa-005rR0-DE@gemulon.postgresql.org> (raw)

Allow specifying initial and maximum segment sizes for DSA.

Previously, the DSA segment size always started with 1MB and grew up
to DSA_MAX_SEGMENT_SIZE. It was inconvenient in certain scenarios,
such as when the caller desired a soft constraint on the total DSA
segment size, limiting it to less than 1MB.

This commit introduces the capability to specify the initial and
maximum DSA segment sizes when creating a DSA area, providing more
flexibility and control over memory usage.

Reviewed-by: John Naylor, Tomas Vondra
Discussion: https://postgr.es/m/CAD21AoAYGGC1ePjVX0H%2Bpp9rH%3D9vuPK19nNOiu12NprdV5TVJA%40mail.gmail.com

Branch
------
master

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

Modified Files
--------------
src/backend/utils/mmgr/dsa.c | 63 ++++++++++++++++++++------------------------
src/include/utils/dsa.h      | 46 +++++++++++++++++++++++++++++---
2 files changed, 71 insertions(+), 38 deletions(-)



view thread (2+ messages)

Message-ID: <E1rpJHa-005rR0-DE@gemulon.postgresql.org>
Permalink:  ../E1rpJHa-005rR0-DE@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1rpJHa-005rR0-DE@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: msawada@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Allow specifying initial and maximum segment sizes for DSA.
  In-Reply-To: <E1rpJHa-005rR0-DE@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