aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2022-08-23 09:41:37 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2022-08-23 09:42:10 -0400
commit384497f34de5435921ed2c32d29874f4f7532c3a (patch)
tree2a3a9698288a646ccd7492c4207775eee2c14059 /src
parent4985a45917c88ae286ed76971154668e7d545832 (diff)
downloadpostgresql-384497f34de5435921ed2c32d29874f4f7532c3a.tar.gz
postgresql-384497f34de5435921ed2c32d29874f4f7532c3a.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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c
index 1193b8e24b1..70c7cc70bef 100644
--- a/src/backend/postmaster/postmaster.c
+++ b/src/backend/postmaster/postmaster.c
@@ -4949,7 +4949,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