diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2022-08-23 09:41:37 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2022-08-23 09:42:02 -0400 |
commit | eb0097c6f3eeb559e33369066be7279f540d05db (patch) | |
tree | d48e224451a403eaca6c4472ceeab74748028342 /src | |
parent | 6d05d575bec5ef9a05f8d62f1c872b71dde32a01 (diff) | |
download | postgresql-eb0097c6f3eeb559e33369066be7279f540d05db.tar.gz postgresql-eb0097c6f3eeb559e33369066be7279f540d05db.zip |
Doc: prefer sysctl to /proc/sys in docs and comments.
sysctl is more portable than Linux's /proc/sys file tree, and
often easier to use too. That's why most of our docs refer to
sysctl when talking about how to adjust kernel parameters.
Bring the few stragglers into line.
Discussion: https://postgr.es/m/361175.1661187463@sss.pgh.pa.us
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/postmaster/postmaster.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index ad35340a52d..db091b92786 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -4944,7 +4944,7 @@ SubPostmasterMain(int argc, char *argv[]) * If testing EXEC_BACKEND on Linux, you should run this as root before * starting the postmaster: * - * echo 0 >/proc/sys/kernel/randomize_va_space + * sysctl -w kernel.randomize_va_space=0 * * This prevents using randomized stack and code addresses that cause the * child process's memory map to be different from the parent's, making it |