pgsql: Add --clobber-cache option to initdb, for CCA testing.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add --clobber-cache option to initdb, for CCA testing.
Date: 2021-07-01 17:33:22
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add --clobber-cache option to initdb, for CCA testing.

Commit 4656e3d66 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 where 4656e3d66 came in.

Discussion: https://postgr.es/m/[email protected]

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b741f4c3ee67666aa333dbb25bd71906b3474def

Modified Files
--------------
doc/src/sgml/ref/initdb.sgml | 11 +++++++++++
src/bin/initdb/initdb.c | 26 ++++++++++++++++++--------
2 files changed, 29 insertions(+), 8 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2021-07-01 19:15:45 pgsql: Add new make targets world-bin and install-world-bin
Previous Message Alvaro Herrera 2021-07-01 16:58:47 pgsql: Don't reset relhasindex for partitioned tables on ANALYZE