From: Peter Eisentraut Date: Tue, 8 Nov 2011 04:49:50 +0000 (+0200) Subject: -DLINUX_OOM_ADJ=0 should be in CPPFLAGS, not CFLAGS X-Git-Url: http://git.postgresql.org/gitweb/static/developers.postgresql.org?a=commitdiff_plain;h=97c3d4853b3b095e3dadf80156a89b231f51e784;p=users%2Frhaas%2Fpostgres.git -DLINUX_OOM_ADJ=0 should be in CPPFLAGS, not CFLAGS --- diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml index 68ceff1530..c684693f9f 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 PostgreSQL - with -DLINUX_OOM_ADJ=0 added to CFLAGS. + with -DLINUX_OOM_ADJ=0 added to CPPFLAGS. That will cause postmaster child processes to run with the normal oom_adj value of zero, so that the OOM killer can still target them at need.