From a8a3f7cbb9e46d946d9c0d7f8e8d547ad35a5a2c Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Thu, 26 Feb 2015 16:51:45 +0100 Subject: configuration: SCL hacks Its now configurable what software collections will be enabled for pg_upgrade run, in case it is needed (new 'scls' option). Similarly, pg_upgrade needs to be told to send unix_socket_directories instead of unix_socket_directory to PostgreSQL server built for RHEL. * etc/postgresql-setup/upgrade/postgresql.conf: Add configuration examples for new options. * postgresql-setup.in (parse_upgrade_setup): Parse 'scls' and 'redhat_sockets_hack' options. (upgrade): Adjust the environment of 'su - postgres' call to pg_upgrade, optionally. --- etc/postgresql-setup/upgrade/postgresql.conf | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'etc/postgresql-setup/upgrade/postgresql.conf') diff --git a/etc/postgresql-setup/upgrade/postgresql.conf b/etc/postgresql-setup/upgrade/postgresql.conf index db58470..49d58b5 100644 --- a/etc/postgresql-setup/upgrade/postgresql.conf +++ b/etc/postgresql-setup/upgrade/postgresql.conf @@ -16,3 +16,11 @@ engine /usr/bin # Just to feed ./postgresql-setup --upgrade-ids help output description "In-place upgrade from Fedora 19 (PostgreSQL 9.2)" + +# What software collections must be enabled for successful upgrade. +scls "postgresql92" + +# Red Hat back-patches unix_socket_directories into major versions 9.2+, which +# is different from upstream (9.3+). You may need to let pg_upgrade know that +# it works against server 9.2 built by Red Hat. +redhat_sockets_hack yes -- cgit