pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Change _mdfd_segpath() to return paths by value
Date: Tue, 25 Feb 2025 14:23:30 +0000
Message-ID: <E1tmvqL-0001EN-0Q@gemulon.postgresql.org> (raw)

Change _mdfd_segpath() to return paths by value

This basically mirrors the changes done in the predecessor commit. While there
isn't currently a need to get these paths in critical sections, it seems a
shame to unnecessarily allocate memory in these paths now that relpath()
doesn't allocate anymore.

Discussion: https://postgr.es/m/xeri5mla4b5syjd5a25nok5iez2kr3bm26j2qn4u7okzof2bmf@kwdh2vf7npra

Branch
------
master

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

Modified Files
--------------
src/backend/storage/smgr/md.c    | 58 +++++++++++++++++++++++++---------------
src/tools/pgindent/typedefs.list |  1 +
2 files changed, 38 insertions(+), 21 deletions(-)



Message-ID: <E1tmvqL-0001EN-0Q@gemulon.postgresql.org>
Permalink:  ../E1tmvqL-0001EN-0Q@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1tmvqL-0001EN-0Q@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: andres@anarazel.de, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Change _mdfd_segpath() to return paths by value
  In-Reply-To: <E1tmvqL-0001EN-0Q@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