=?UTF-8?Q?R=C3=A9beli-Szab=C3=B3_Tam=C3=A1s?= <t@rblst.info> writes:
> I want to do a proper calculation of the number of huge pages needed for
> PostgreSQL to start.
> For that I need to know how much shared memory will be allocated at
> startup.
TBH, the only method that's not going to break over time is
"start the server with the parameters you want, and look to
see how big the shmem segment is".
We used to have an approximate formula in the documentation,
but we took it out years ago because it was constantly out of date.
regards, tom lane