Re: Changing shared_buffers without restart
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Matthias van de Meent <boekewurm+postgres@gmail.com>
Cc: Robert Haas <robertmhaas@gmail.com>,
Dmitry Dolgov <9erthalion6@gmail.com>,
pgsql-hackers@postgresql.org
Date: 2024-11-28T18:57:15Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Remove PG_MMAP_FLAGS from mem.h
- c100340729b6 19 (unreleased) landed
-
Improve runtime and output of tests for replication slots checkpointing.
- 4464fddf7b50 18.0 cited
-
Revert support for improved tracking of nested queries
- f85f6ab051b7 18.0 cited
-
Use exported symbols list on macOS for loadable modules as well
- 3feff3916ee1 18.0 cited
-
Add support for basic NUMA awareness
- 65c298f61fc7 18.0 cited
-
Avoid unnecessary copying of a string in pg_restore.c
- 5e1915439085 18.0 cited
-
aio: Infrastructure for io_method=worker
- 55b454d0e140 18.0 cited
-
Improve InitShmemAccess() prototype
- 2a7b2d97171d 18.0 landed
Matthias van de Meent <boekewurm+postgres@gmail.com> writes: > On Thu, 28 Nov 2024 at 18:19, Robert Haas <robertmhaas@gmail.com> wrote: >> [...] It's unclear to me why >> operating systems don't offer better primitives for this sort of thing >> -- in theory there could be a system call that sets aside a pool of >> address space and then other system calls that let you allocate >> shared/unshared memory within that space or even at specific >> addresses, but actually such things don't exist. > Isn't that more a stdlib/malloc issue? AFAIK, Linux's mmap(2) syscall > allows you to request memory from the OS at arbitrary addresses - it's > just that stdlib's malloc doens't expose the 'alloc at this address' > part of that API. I think what Robert is concerned about is that there is exactly 0 guarantee that that will succeed, because you have no control over system-driven allocations of address space (for example, loading of extensions or JIT code). In fact, given things like ASLR, there is pressure on the kernel crew to make that *less* predictable not more so. So even if we devise a method that seems to work reliably today, we could have little faith that it would work with next year's kernels. regards, tom lane