summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorPavel Raiskup <praiskup@redhat.com>2015-02-26 16:51:45 +0100
committerPavel Raiskup <praiskup@redhat.com>2015-02-26 17:31:38 +0100
commita8a3f7cbb9e46d946d9c0d7f8e8d547ad35a5a2c (patch)
tree00180696a9ec77489aac96c20e92c1829c58f5f0 /etc
parentf7f516372e2218daf18a79241d1fd271faa237cc (diff)
downloadpostgresql-setup-a8a3f7cbb9e46d946d9c0d7f8e8d547ad35a5a2c.tar.gz
postgresql-setup-a8a3f7cbb9e46d946d9c0d7f8e8d547ad35a5a2c.tar.xz
postgresql-setup-a8a3f7cbb9e46d946d9c0d7f8e8d547ad35a5a2c.zip
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.
Diffstat (limited to 'etc')
-rw-r--r--etc/postgresql-setup/upgrade/postgresql.conf8
1 files changed, 8 insertions, 0 deletions
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