Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
postgresql-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PostgreSQL
postgresql-common
Commits
e97d163c
Commit
e97d163c
authored
11 years ago
by
Christoph Berg
Browse files
Options
Downloads
Patches
Plain Diff
pg_ctlcluster: Create stats_temp_directory when missing.
parent
86e2ae5e
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
PgCommon.pm
+3
-1
3 additions, 1 deletion
PgCommon.pm
debian/changelog
+2
-1
2 additions, 1 deletion
debian/changelog
pg_ctlcluster
+6
-0
6 additions, 0 deletions
pg_ctlcluster
with
11 additions
and
2 deletions
PgCommon.pm
+
3
−
1
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
'}
&&
...
...
This diff is collapsed.
Click to expand it.
debian/changelog
+
2
−
1
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
Ju
n
2013 1
5:19:02
+0200
-- Christoph Berg <myon@debian.org>
Mon, 01
Ju
l
2013 1
1:47:25
+0200
postgresql-common (145) unstable; urgency=low
...
...
This diff is collapsed.
Click to expand it.
pg_ctlcluster
+
6
−
0
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment