postgres.git / summary / log / commit / refs
commit 6477d66780df0682e36e676fd746356bb23bf7ce
Author: Peter Eisentraut <peter_e@gmx.net>
Date: Tue Nov 08 04:49:50 2011 +0000
First released in: 9.2.0, 9.0.6, 9.1.2
-DLINUX_OOM_ADJ=0 should be in CPPFLAGS, not CFLAGS
doc/src/sgml/runtime.sgml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml
index 86499c67ac5..08f9fd0b20f 100644
--- a/doc/src/sgml/runtime.sgml
+++ b/doc/src/sgml/runtime.sgml
@@ -1342,7 +1342,7 @@ echo -17 > /proc/self/oom_adj
Note that this action must be done as root, or it will have no effect;
so a root-owned startup script is the easiest place to do it. If you
do this, you may also wish to build <productname>PostgreSQL</>
- with <literal>-DLINUX_OOM_ADJ=0</> added to <varname>CFLAGS</>.
+ with <literal>-DLINUX_OOM_ADJ=0</> added to <varname>CPPFLAGS</>.
That will cause postmaster child processes to run with the normal
<varname>oom_adj</> value of zero, so that the OOM killer can still
target them at need.
[parent: b60653bc0b75]