]> granicus.if.org Git - postgresql/commit
Support Linux's oom_score_adj API as well as the older oom_adj API.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 13 Jun 2012 19:34:57 +0000 (15:34 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 13 Jun 2012 19:35:52 +0000 (15:35 -0400)
commit93f4d7f806613d28842f956a84f31cc41d825503
tree493db7fa8fc449a9cac2a75ac2a44b197e9f2271
parentb9212e379c55564c8b6cdc8585b74606e90ec1ea
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.
contrib/start-scripts/linux
doc/src/sgml/runtime.sgml
src/backend/postmaster/fork_process.c