Skip to content
Snippets Groups Projects
Commit 577577e9 authored by Christoph Berg's avatar Christoph Berg :satellite:
Browse files

pg_wrapper: Always use the latest available version of "pg_isready"

instead of the target cluster's. pg_isready appeared only in 9.3, but is
usable with older versions as well. Suggested by Peter Eisentraut.
(Closes: #728599)
parent 4bc461aa
No related branches found
No related tags found
No related merge requests found
postgresql-common (151) UNRELEASED; urgency=low
* pg_wrapper: Always use the latest available version of "pg_isready"
instead of the target cluster's. pg_isready appeared only in 9.3, but is
usable with older versions as well. Suggested by Peter Eisentraut.
(Closes: #728599)
-- Christoph Berg <myon@debian.org> Sun, 03 Nov 2013 23:47:53 +0100
postgresql-common (150) unstable; urgency=low postgresql-common (150) unstable; urgency=low
[ Christoph Berg ] [ Christoph Berg ]
......
...@@ -103,8 +103,8 @@ my $cmd; ...@@ -103,8 +103,8 @@ my $cmd;
# for psql we always want the latest version, as this is backwards compatible # for psql we always want the latest version, as this is backwards compatible
# to every major version that that we support # to every major version that that we support
if ($cmdname eq 'psql') { if ($cmdname =~ /^(psql|pg_isready)$/) {
$cmd = get_program_path ('psql', get_newest_version); $cmd = get_program_path ($cmdname, get_newest_version);
} else { } else {
$cmd = get_program_path ($cmdname, $version); $cmd = get_program_path ($cmdname, $version);
} }
...@@ -210,6 +210,9 @@ will be selected. ...@@ -210,6 +210,9 @@ will be selected.
If none of these rules match, B<pg_wrapper> aborts with an error. If none of these rules match, B<pg_wrapper> aborts with an error.
For B<psql> and B<pg_isready>, B<pg_wrapper> will always use the binary from
the newest PostgreSQL version installed, as these are downwards compatible.
=head1 OPTIONS =head1 OPTIONS
=over =over
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment