From d68a00391214be2020e49be4b55f761d47a5c229 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 13 Jul 2021 15:01:01 -0400 Subject: Rename debug_invalidate_system_caches_always to debug_discard_caches. The name introduced by commit 4656e3d66 was agreed to be unreasonably long. To match this change, rename initdb's recently-added --clobber-cache option to --discard-caches. Discussion: https://postgr.es/m/1374320.1625430433@sss.pgh.pa.us --- src/bin/initdb/initdb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/bin/initdb') diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c index 0945d700619..77e621a7679 100644 --- a/src/bin/initdb/initdb.c +++ b/src/bin/initdb/initdb.c @@ -2266,8 +2266,8 @@ usage(const char *progname) printf(_(" -X, --waldir=WALDIR location for the write-ahead log directory\n")); printf(_(" --wal-segsize=SIZE size of WAL segments, in megabytes\n")); printf(_("\nLess commonly used options:\n")); - printf(_(" --clobber-cache use cache-clobbering debug option\n")); printf(_(" -d, --debug generate lots of debugging output\n")); + printf(_(" --discard-caches set debug_discard_caches=1\n")); printf(_(" -L DIRECTORY where to find the input files\n")); printf(_(" -n, --no-clean do not clean up after errors\n")); printf(_(" -N, --no-sync do not wait for changes to be written safely to disk\n")); @@ -2947,7 +2947,7 @@ main(int argc, char *argv[]) {"wal-segsize", required_argument, NULL, 12}, {"data-checksums", no_argument, NULL, 'k'}, {"allow-group-access", no_argument, NULL, 'g'}, - {"clobber-cache", no_argument, NULL, 14}, + {"discard-caches", no_argument, NULL, 14}, {NULL, 0, NULL, 0} }; @@ -3092,7 +3092,7 @@ main(int argc, char *argv[]) case 14: extra_options = psprintf("%s %s", extra_options, - "-c debug_invalidate_system_caches_always=1"); + "-c debug_discard_caches=1"); break; default: /* getopt_long already emitted a complaint */ -- cgit v1.2.3