1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-11 20:28:21 +03:00

Add option to specify segment size in blocks

The tests don't have much coverage of segment related code, as we don't create
large enough tables. To make it easier to test these paths, add a new option
specifying the segment size in blocks.

Set the new option to 6 blocks in one of the CI tasks. Smaller numbers
currently fail one of the tests, for understandable reasons.

While at it, fix some segment size related issues in the meson build.

Author: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/20221107171355.c23fzwanfzq2pmgt@awork3.anarazel.de
This commit is contained in:
Andres Freund
2022-12-07 19:32:59 -08:00
parent bf07ab492c
commit d3b111e320
6 changed files with 132 additions and 24 deletions

View File

@ -1681,6 +1681,20 @@ build-postgresql:
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>--with-segsize-blocks=SEGSIZE_BLOCKS</option></term>
<listitem>
<para>
Specify the segment size in blocks. If both
<option>--with-segsize</option> and this option are specified, this
option wins.
This option is only for developers, to test segment related code.
</para>
</listitem>
</varlistentry>
</variablelist>
</sect3>
@ -3097,6 +3111,20 @@ ninja install
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-Dsegsize_blocks=SEGSIZE_BLOCKS</option></term>
<listitem>
<para>
Specify the segment size in blocks. If both
<option>-Dsegsize</option> and this option are specified, this option
wins.
This option is only for developers, to test segment related code.
</para>
</listitem>
</varlistentry>
</variablelist>
</sect3>
</sect2>