mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Add --clobber-cache option to initdb, for CCA testing.
Commit4656e3d66
replaced the "#define CLOBBER_CACHE_ALWAYS" testing mechanism with a GUC, which has been a great help for doing cache-clobber testing in more efficient ways; but there is a gap in the implementation. The only way to do cache-clobber testing during an initdb run is to use the old method with #define, because one can't set the GUC from outside. Improve this by adding a switch to initdb for the purpose. (Perhaps someday we should let initdb pass through arbitrary "-c NAME=VALUE" switches. Quoting difficulties dissuaded me from attempting that right now, though.) Back-patch to v14 where4656e3d66
came in. Discussion: https://postgr.es/m/1582507.1624227029@sss.pgh.pa.us
This commit is contained in:
@ -388,6 +388,17 @@ PostgreSQL documentation
|
||||
Other, less commonly used, options are also available:
|
||||
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><option>--clobber-cache</option></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Run the bootstrap backend with the
|
||||
<literal>debug_invalidate_system_caches_always=1</literal> option.
|
||||
This takes a very long time and is only of use for deep debugging.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-d</option></term>
|
||||
<term><option>--debug</option></term>
|
||||
|
Reference in New Issue
Block a user