summaryrefslogtreecommitdiff
path: root/src/bin/initdb
diff options
context:
space:
mode:
authorTom Lane2021-07-13 19:01:01 +0000
committerTom Lane2021-07-13 19:01:01 +0000
commitd68a00391214be2020e49be4b55f761d47a5c229 (patch)
tree766b2aebf10bbe67fb38bcc012425c11d06792eb /src/bin/initdb
parente0271d5f1e871dd61efc26bda8a0b556c7935901 (diff)
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
Diffstat (limited to 'src/bin/initdb')
-rw-r--r--src/bin/initdb/initdb.c6
1 files changed, 3 insertions, 3 deletions
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 */