diff options
author | Pavel Raiskup <praiskup@redhat.com> | 2015-09-22 16:12:45 +0200 |
---|---|---|
committer | Pavel Raiskup <praiskup@redhat.com> | 2015-09-22 18:17:40 +0200 |
commit | cfbcc14c3264ef73f510baee1120de0351d1ab6d (patch) | |
tree | 5b064644d4cb49117e4f871709b7677ea5986fcd /NEWS | |
parent | 9cea22e1d0501f749e6d2a3140892f74f05dc2df (diff) | |
download | postgresql-setup-cfbcc14c3264ef73f510baee1120de0351d1ab6d.tar.gz postgresql-setup-cfbcc14c3264ef73f510baee1120de0351d1ab6d.tar.xz postgresql-setup-cfbcc14c3264ef73f510baee1120de0351d1ab6d.zip |
postgresql-setup: fix upgrade bug with non-default unit names
We can't always use '$upgradefrom_id' as "default" previous
service name. This broken in-place upgrades with
'--unit postgresqlPORT' (old style service files layout) or
'postgresql@port'. Now, by default, use the same service name
for both older and newer PG stack.
While we are on it, make it a bit more automatic and pick
'postgresql92@second' as "older stack" if upgrading into unit
'postgresql93@second'.
Add new option --upgrade-from-unit which allows us to override
default decision.
* postgresql-setup.in: Set 'option_upgradefrom_unit' to hopefully
correct default. Add new info message in case we are not
upgrading from differently named unit.
(USAGE_STRING): Document new --upgrade-from-unit option.
(service_configuration): Don't fork based on $mode and simply use
fourth parameter as 'service'. Fix the debug message a bit.
(long_opts): Add new option upgrade-from-unit.
* NEWS: Document.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -1,5 +1,14 @@ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Bugfixes in 3.4 version + +* Fix upgrade for non-standard unit names with --unit option. + +* Add --upgrade-from-unit option which allows proper selection of + predecessor service name (when the default detection does not help). + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Bugfixes in 3.3 version * The PGPORT/PGOPTS/.. variables should be correctly forwarded down from |