aboutsummaryrefslogtreecommitdiff
path: root/src/backend
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 10:15:06 -0400
commit4ee6740167b6a311660a1e8752447a496dd0d235 (patch)
tree1cf1401792ef68cb1873d44063316462fa5c71f5 /src/backend
parentbd67b7e01031b688f2f19f657ece4aa2322dbcc8 (diff)
downloadpostgresql-4ee6740167b6a311660a1e8752447a496dd0d235.tar.gz
postgresql-4ee6740167b6a311660a1e8752447a496dd0d235.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/backend')
-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 8a038d1b2ae..1664fcee2a7 100644
--- a/src/backend/postmaster/postmaster.c
+++ b/src/backend/postmaster/postmaster.c
@@ -4891,7 +4891,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