Re: allow segment size to be set to < 1GiB

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers@postgresql.org, Peter Geoghegan <pg@bowt.ie>
Date: 2022-11-07T17:52:25Z
Lists: pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> In the attached patch I renamed --with-segsize= to --with-segsize-mb= /
> -Dsegsize= to -Dsegsize_mb=, to avoid somebody building with --with-segsize=2
> or such suddenly ending up with an incompatible build.

For the purpose of exercising these code paths with the standard
regression tests, even a megabyte seems large -- we don't create
very many test tables that are that big.  How about instead
allowing the segment size to be set in pages?

			regards, tom lane



Commits

  1. Add option to specify segment size in blocks