postgresql: Switch to defaulting to PostgreSQL 13.

This commit is contained in:
Alex Vandiver 2021-04-26 16:11:02 -07:00 committed by Tim Abbott
parent b50e261cac
commit ae2c377d13
4 changed files with 11 additions and 10 deletions

View File

@ -1,15 +1,16 @@
PostgreSQL database details PostgreSQL database details
========================= =========================
Starting with Zulip 3.0, Zulip supports using PostgreSQL 10, 11, or 12, Starting with Zulip 3.0, Zulip supports a range of PostgreSQL
defaulting to PostgreSQL 12 for new installations. 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 was Previous versions of Zulip used whatever version of PostgreSQL was
included with the base operating system (E.g. PostgreSQL 12 on Ubuntu included with the base operating system (E.g. PostgreSQL 12 on Ubuntu
Focal, 10 on Ubuntu Bionic, and 9.6 on Ubuntu Xenial). We recommend Focal, 10 on Ubuntu Bionic, and 9.6 on Ubuntu Xenial). We recommend
that installations currently using older PostgreSQL releases [upgrade to that installations currently using older PostgreSQL releases [upgrade
PostgreSQL 12][upgrade-postgresql], as may drop support for older PostgreSQL to PostgreSQL 13][upgrade-postgresql], as we may drop support for
in a future release. older PostgreSQL in a future release.
[upgrade-postgresql]: ../production/upgrade-or-modify.html#upgrading-postgresql [upgrade-postgresql]: ../production/upgrade-or-modify.html#upgrading-postgresql

View File

@ -403,9 +403,9 @@ instructions for other supported platforms.
## Upgrading PostgreSQL ## Upgrading PostgreSQL
Starting with Zulip 3.0, we use the latest available version of Starting 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 to
the version of PostgreSQL are no longer linked to upgrades of the the 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 while
running Ubuntu 18.04 Bionic. running Ubuntu 18.04 Bionic.
To upgrade the version of PostgreSQL on the Zulip server: To upgrade the version of PostgreSQL on the Zulip server:

View File

@ -28,7 +28,7 @@ Options:
install process; used when this command is run once in a highly-controlled install process; used when this command is run once in a highly-controlled
environment to produce an image which is used elsewhere. Uncommon. environment to produce an image which is used elsewhere. Uncommon.
--postgresql-version=12 --postgresql-version=13
Sets the version of PostgreSQL that will be installed. Sets the version of PostgreSQL that will be installed.
--postgresql-missing-dictionaries --postgresql-missing-dictionaries
Set postgresql.missing_dictionaries, which alters the initial database. Use with Set 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. # e.g. zulip::profile::app_frontend for a Zulip frontend server.
PUPPET_CLASSES="${PUPPET_CLASSES:-zulip::profile::standalone}" PUPPET_CLASSES="${PUPPET_CLASSES:-zulip::profile::standalone}"
VIRTUALENV_NEEDED="${VIRTUALENV_NEEDED:-yes}" VIRTUALENV_NEEDED="${VIRTUALENV_NEEDED:-yes}"
POSTGRESQL_VERSION="${POSTGRESQL_VERSION:-12}" POSTGRESQL_VERSION="${POSTGRESQL_VERSION:-13}"
if [ -n "$SELF_SIGNED_CERT" ] && [ -n "$USE_CERTBOT" ]; then if [ -n "$SELF_SIGNED_CERT" ] && [ -n "$USE_CERTBOT" ]; then
set +x set +x

View File

@ -6,7 +6,7 @@ if [ "$EUID" -ne 0 ]; then
exit 1 exit 1
fi fi
UPGRADE_TO=${1:-12} UPGRADE_TO=${1:-13}
UPGRADE_FROM=$(crudini --get /etc/zulip/zulip.conf postgresql version) UPGRADE_FROM=$(crudini --get /etc/zulip/zulip.conf postgresql version)
ZULIP_PATH="$(dirname "$0")/../.." ZULIP_PATH="$(dirname "$0")/../.."