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
Issues
4
Issues
4
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PostgreSQL
postgresql-common
Commits
e97d163c
Commit
e97d163c
authored
Jul 01, 2013
by
Christoph Berg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pg_ctlcluster: Create stats_temp_directory when missing.
parent
86e2ae5e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
PgCommon.pm
PgCommon.pm
+3
-1
debian/changelog
debian/changelog
+2
-1
pg_ctlcluster
pg_ctlcluster
+6
-0
No files found.
PgCommon.pm
View file @
e97d163c
...
...
@@ -562,7 +562,8 @@ sub check_pidfile_running {
# Return a hash with information about a specific cluster.
# Arguments: <version> <cluster name>
# Returns: information hash (keys: pgdata, port, running, logfile [unless it
# has a custom one], configdir, owneruid, ownergid, socketdir)
# has a custom one], configdir, owneruid, ownergid, socketdir,
# statstempdir)
sub
cluster_info
{
error
'
cluster_info must be called with <version> <cluster> arguments
'
unless
$_
[
0
]
&&
$_
[
1
];
...
...
@@ -572,6 +573,7 @@ sub cluster_info {
$result
{'
pgdata
'}
=
cluster_data_directory
$_
[
0
],
$_
[
1
],
\%
postgresql_conf
;
$result
{'
port
'}
=
$postgresql_conf
{'
port
'}
||
$defaultport
;
$result
{'
socketdir
'}
=
get_cluster_socketdir
$_
[
0
],
$_
[
1
];
$result
{'
statstempdir
'}
=
$postgresql_conf
{'
stats_temp_directory
'};
# if we can determine the running status with the pid file, prefer that
if
(
$postgresql_conf
{'
external_pid_file
'}
&&
...
...
debian/changelog
View file @
e97d163c
...
...
@@ -6,8 +6,9 @@ postgresql-common (146) UNRELEASED; urgency=low
+
On
error
,
show
tail
of
server
log
file
.
+
When
no
command
is
given
,
open
a
shell
.
*
pg_createcluster
:
Add
--
createclusterconf
and
--
environment
options
.
*
pg_ctlcluster
:
Create
stats_temp_directory
when
missing
.
--
Christoph
Berg
<
myon
@
debian
.
org
>
Thu
,
27
Jun
2013
15
:
19
:
02
+
0200
--
Christoph
Berg
<
myon
@
debian
.
org
>
Mon
,
01
Jul
2013
11
:
47
:
25
+
0200
postgresql
-
common
(
145
)
unstable
;
urgency
=
low
...
...
pg_ctlcluster
View file @
e97d163c
...
...
@@ -390,6 +390,12 @@ if ($action ne 'stop' && ! -d $info{'socketdir'}) {
'
-o
',
$info
{'
owneruid
'},
'
-g
',
$info
{'
ownergid
'},
$info
{'
socketdir
'};
}
# recreate stats_temp_directory
if
(
$action
ne
'
stop
'
&&
$info
{'
statstempdir
'}
&&
!
-
d
$info
{'
statstempdir
'})
{
system
'
install
',
'
-d
',
'
-m
',
750
,
'
-o
',
$info
{'
owneruid
'},
'
-g
',
$info
{'
ownergid
'},
$info
{'
statstempdir
'};
}
if
(
$>
==
0
)
{
# have the postmaster start with increased OOM killer protection; 9.1 and
# later has builtin support for resetting the adjustment of child processes
...
...
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