Skip site navigation (1) Skip section navigation (2)

pgsql: Support Linux's oom_score_adj API as well as the older oom_adjA

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Support Linux's oom_score_adj API as well as the older oom_adjA
Date: 2012-06-13 19:36:19
Message-ID: E1SetMZ-0007u3-I1@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Support Linux's oom_score_adj API as well as the older oom_adj API.

The simplest way to handle this is just to copy-and-paste the relevant
code block in fork_process.c, so that's what I did. (It's possible that
something more complicated would be useful to packagers who want to work
with either the old or the new API; but at this point the number of such
people is rapidly approaching zero, so let's just get the minimal thing
done.)  Update relevant documentation as well.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/93f4d7f806613d28842f956a84f31cc41d825503

Modified Files
--------------
contrib/start-scripts/linux           |   14 ++++++++---
doc/src/sgml/runtime.sgml             |   23 +++++++++++++------
src/backend/postmaster/fork_process.c |   38 ++++++++++++++++++++++++++++----
3 files changed, 59 insertions(+), 16 deletions(-)

pgsql-committers by date

Next:From: Tom LaneDate: 2012-06-13 21:48:53
Subject: pgsql: Deprecate use of GLOBAL and LOCAL in temp table creation.
Previous:From: Dimitri FontaineDate: 2012-06-13 19:33:31
Subject: Re: Re: [COMMITTERS] pgsql: Send new protocol keepalive messages to standby servers.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group