Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
install: Support PostgreSQL 16.
Alex Vandiver1ba2f39854c6
diff --git a/docs/production/deployment.md b/docs/production/deployment.mdindex 5d36f45ca50..332e025d658 100644--- a/docs/production/deployment.md+++ b/docs/production/deployment.md@@ -52,8 +52,8 @@ as well as those mentioned in the[install](install.md#installer-options) documentation:- `--postgresql-version`: Sets the version of PostgreSQL that will be- installed. We currently support PostgreSQL 12, 13, 14, and 15, with 15 being- the default.+ installed. We currently support PostgreSQL 12, 13, 14, 15, and 16, with 16+ being the default.- `--postgresql-database-name=exampledbname`: With this option, youcan customize the default database name. If you do not set this. Thediff --git a/docs/production/postgresql.md b/docs/production/postgresql.mdindex 2e19a630d02..5d08fc82f59 100644--- a/docs/production/postgresql.md+++ b/docs/production/postgresql.md@@ -1,8 +1,8 @@# PostgreSQL database detailsStarting with Zulip 3.0, Zulip supports a range of PostgreSQL-versions. PostgreSQL 15 is the current default for new installations;-PostgreSQL 12, 13, 14, and 15 are all supported.+versions. PostgreSQL 16 is the current default for new installations;+PostgreSQL 12, 13, 14, 15, and 16 are all supported.Previous versions of Zulip used whatever version of PostgreSQL wasincluded with the base operating system (E.g. PostgreSQL 12 on Ubuntudiff --git a/puppet/zulip/manifests/profile/postgresql.pp b/puppet/zulip/manifests/profile/postgresql.ppindex 8f4ec3b5aeb..202cae0076e 100644--- a/puppet/zulip/manifests/profile/postgresql.pp+++ b/puppet/zulip/manifests/profile/postgresql.pp@@ -40,7 +40,7 @@ class zulip::profile::postgresql {mode => '0644',content => template("zulip/postgresql/${version}/postgresql.conf.template.erb"),}- } elsif $version in ['15'] {+ } elsif $version in ['15', '16'] {$postgresql_conf_file = "${zulip::postgresql_base::postgresql_confdir}/conf.d/zulip.conf"file { $postgresql_conf_file:ensure => file,diff --git a/scripts/lib/install b/scripts/lib/installindex fdf59b9defb..71cb215386f 100755--- a/scripts/lib/install+++ b/scripts/lib/install@@ -32,7 +32,7 @@ Options:Sets the PostgreSQL database name.--postgresql-database-user=zulipSets the PostgreSQL database user.- --postgresql-version=15+ --postgresql-version=16Sets the version of PostgreSQL that will be installed.--postgresql-missing-dictionariesSet postgresql.missing_dictionaries, which alters the initial database. Use with@@ -152,7 +152,7 @@ read -r -a ADDITIONAL_PACKAGES <<<"${ADDITIONAL_PACKAGES:-}"# e.g. zulip::profile::app_frontend for a Zulip frontend server.PUPPET_CLASSES="${PUPPET_CLASSES:-zulip::profile::standalone}"VIRTUALENV_NEEDED="${VIRTUALENV_NEEDED:-yes}"-POSTGRESQL_VERSION="${POSTGRESQL_VERSION:-15}"+POSTGRESQL_VERSION="${POSTGRESQL_VERSION:-16}"if [ -n "$SELF_SIGNED_CERT" ] && [ -n "$USE_CERTBOT" ]; thenset +xdiff --git a/scripts/setup/upgrade-postgresql b/scripts/setup/upgrade-postgresqlindex d75deb6d17a..e2d2c359492 100755--- a/scripts/setup/upgrade-postgresql+++ b/scripts/setup/upgrade-postgresql@@ -12,7 +12,7 @@ export LC_ALL=C.UTF-8export LANG=C.UTF-8export LANGUAGE=C.UTF-8-LATEST_SUPPORTED_VERSION=15+LATEST_SUPPORTED_VERSION=16UPGRADE_TO=${1:-$LATEST_SUPPORTED_VERSION}UPGRADE_FROM=$(crudini --get /etc/zulip/zulip.conf postgresql version)ZULIP_PATH="$(dirname "$0")/../.."