Skip to content

Commit 0ff319d

Browse files
committed
-DLINUX_OOM_ADJ=0 should be in CPPFLAGS, not CFLAGS
1 parent d747a45 commit 0ff319d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/src/sgml/runtime.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1291,7 +1291,7 @@ echo -17 > /proc/self/oom_adj
12911291
Note that this action must be done as root, or it will have no effect;
12921292
so a root-owned startup script is the easiest place to do it. If you
12931293
do this, you may also wish to build <productname>PostgreSQL</>
1294-
with <literal>-DLINUX_OOM_ADJ=0</> added to <varname>CFLAGS</>.
1294+
with <literal>-DLINUX_OOM_ADJ=0</> added to <varname>CPPFLAGS</>.
12951295
That will cause postmaster child processes to run with the normal
12961296
<varname>oom_adj</> value of zero, so that the OOM killer can still
12971297
target them at need.

0 commit comments

Comments
 (0)