Re: Better shared data structure management and resizable shared data structures

From: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
To: Ashutosh Bapat <ashutosh(dot)bapat(dot)oss(at)gmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, Andres Freund <andres(at)anarazel(dot)de>, chaturvedipalak1911(at)gmail(dot)com
Subject: Re: Better shared data structure management and resizable shared data structures
Date: 2026-02-16 17:32:18
Message-ID: 6f427358-a115-47d9-9e31-b28342245215@iki.fi
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 16/02/2026 16:52, Ashutosh Bapat wrote:
> 2. to use madvise() the address needs to be backed by a file, so
> memfd_create is a must.

It seems to work fine for anonymous mmapped memory here. See attached
test program.

- Heikki

Attachment Content-Type Size
test_mmap.c text/x-csrc 1.3 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2026-02-16 17:41:02 Re: pgstat include expansion
Previous Message Andrew Dunstan 2026-02-16 17:31:37 generating function default settings from pg_proc.dat