Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
postgresql-common
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
Evgeny
postgresql-common
Commits
2e79a18f
Commit
2e79a18f
authored
Oct 08, 2015
by
Christoph Berg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pg_ctlcluster: OOM-protect 9.0 as well.
parent
3e3f23d1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
debian/changelog
debian/changelog
+1
-0
pg_ctlcluster
pg_ctlcluster
+2
-2
No files found.
debian/changelog
View file @
2e79a18f
...
...
@@ -22,6 +22,7 @@ postgresql-common (170) UNRELEASED; urgency=medium
variables
when
creating
the
initial
database
cluster
.
(
Closes
:
#
791526
)
*
Add
/
var
/
log
/
postgresql
to
/
usr
/
lib
/
tmpfiles
.
d
/
postgresql
.
conf
.
*
Also
set
OOMScoreAdjust
in
postgresql
@.
service
.
*
pg_ctlcluster
:
OOM
-
protect
9.0
as
well
.
*
pg_lsclusters
:
Color
online
/
down
clusters
green
/
red
.
*
supported
-
versions
:
Accept
DEB_PG_SUPPORTED_VERSIONS
as
well
.
*
Ship
/
etc
/
postgresql
/
in
postgresql
-
common
.
(
Closes
:
#
801140
)
...
...
pg_ctlcluster
View file @
2e79a18f
...
...
@@ -430,9 +430,9 @@ if ($action ne 'stop' && $info{'statstempdir'} && ! -d $info{'statstempdir'}) {
}
if
(
$>
==
0
)
{
# have postgres start with increased OOM killer protection; 9.
1
and
# have postgres start with increased OOM killer protection; 9.
0
and
# later has builtin support for resetting the adjustment of child processes
if
(
$action
eq
'
start
'
and
$version
>=
'
9.
1
'
and
not
$
PgCommon::
rpm
)
{
if
(
$action
eq
'
start
'
and
$version
>=
'
9.
0
'
and
not
$
PgCommon::
rpm
)
{
if
(
-
w
'
/proc/self/oom_score_adj
')
{
open
F
,
'
>/proc/self/oom_score_adj
';
print
F
"
-900
\n
";
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment