Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
postgresql: Switch to defaulting to PostgreSQL 13.
Alex Vandiverae2c377d13ac
diff --git a/docs/production/postgresql.md b/docs/production/postgresql.mdindex 093e36c38f9..3460dd2006b 100644--- a/docs/production/postgresql.md+++ b/docs/production/postgresql.md@@ -1,15 +1,16 @@PostgreSQL database details=========================-Starting with Zulip 3.0, Zulip supports using PostgreSQL 10, 11, or 12,-defaulting to PostgreSQL 12 for new installations.+Starting with Zulip 3.0, Zulip supports a range of PostgreSQL+versions. PostgreSQL 13 is the current default for new installations;+PostgreSQL 10, 11, and 12 are all supported.Previous versions of Zulip used whatever version of PostgreSQL wasincluded with the base operating system (E.g. PostgreSQL 12 on UbuntuFocal, 10 on Ubuntu Bionic, and 9.6 on Ubuntu Xenial). We recommend-that installations currently using older PostgreSQL releases [upgrade to-PostgreSQL 12][upgrade-postgresql], as may drop support for older PostgreSQL-in a future release.+that installations currently using older PostgreSQL releases [upgrade+to PostgreSQL 13][upgrade-postgresql], as we may drop support for+older PostgreSQL in a future release.[upgrade-postgresql]: ../production/upgrade-or-modify.html#upgrading-postgresqldiff --git a/docs/production/upgrade-or-modify.md b/docs/production/upgrade-or-modify.mdindex 04acfbbf36e..0d13d8e90ec 100644--- a/docs/production/upgrade-or-modify.md+++ b/docs/production/upgrade-or-modify.md@@ -403,9 +403,9 @@ instructions for other supported platforms.## Upgrading PostgreSQLStarting with Zulip 3.0, we use the latest available version of-PostgreSQL at installation time (currently version 12). Upgrades to+PostgreSQL at installation time (currently version 13). Upgrades tothe version of PostgreSQL are no longer linked to upgrades of the-distribution; that is, you may opt to upgrade to PostgreSQL 12 while+distribution; that is, you may opt to upgrade to PostgreSQL 13 whilerunning Ubuntu 18.04 Bionic.To upgrade the version of PostgreSQL on the Zulip server:diff --git a/scripts/lib/install b/scripts/lib/installindex 1e4f84d55ec..fa3378d7bb8 100755--- a/scripts/lib/install+++ b/scripts/lib/install@@ -28,7 +28,7 @@ Options:install process; used when this command is run once in a highly-controlledenvironment to produce an image which is used elsewhere. Uncommon.- --postgresql-version=12+ --postgresql-version=13Sets the version of PostgreSQL that will be installed.--postgresql-missing-dictionariesSet postgresql.missing_dictionaries, which alters the initial database. Use with@@ -127,7 +127,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:-12}"+POSTGRESQL_VERSION="${POSTGRESQL_VERSION:-13}"if [ -n "$SELF_SIGNED_CERT" ] && [ -n "$USE_CERTBOT" ]; thenset +xdiff --git a/scripts/setup/upgrade-postgresql b/scripts/setup/upgrade-postgresqlindex 6f58de8f92f..64fa2509121 100755--- a/scripts/setup/upgrade-postgresql+++ b/scripts/setup/upgrade-postgresql@@ -6,7 +6,7 @@ if [ "$EUID" -ne 0 ]; thenexit 1fi-UPGRADE_TO=${1:-12}+UPGRADE_TO=${1:-13}UPGRADE_FROM=$(crudini --get /etc/zulip/zulip.conf postgresql version)ZULIP_PATH="$(dirname "$0")/../.."