Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
install: Support PostgreSQL 17.
Anders Kaseorg818742c62b38
diff --git a/docs/overview/changelog.md b/docs/overview/changelog.mdindex bf7421a9ab4..7c4384a584a 100644--- a/docs/overview/changelog.md+++ b/docs/overview/changelog.md@@ -13,6 +13,12 @@ log][commit-log] for an up-to-date list of all changes._Unreleased_+- Added support for using PostgreSQL 17 as the database. See the+ [PostgreSQL upgrade+ documentation](../production/upgrade.md#upgrading-postgresql) if+ you’re interested in upgrading an existing server to newer+ PostgreSQL.+#### Upgrade notes for 11.0- None yet.@@ -918,8 +924,10 @@ _Released 2024-01-24_authentication could cause other queue workers to not progressproperly on low-memory Zulip servers.- Added support for using PostgreSQL 16 as the database. See the- PostgreSQL upgrade documentation if you’re interested in upgrading- an existing server to newer Postgres.+ [PostgreSQL upgrade+ documentation](../production/upgrade.md#upgrading-postgresql) if+ you’re interested in upgrading an existing server to newer+ PostgreSQL.- Added support for explicitly deactivating a mobile pushnotifications registration.- Added support for a new class of custom authentication hook.@@ -1363,7 +1371,7 @@ _Released 2023-05-31_- Added additional confirmation dialogs for actions deserving caution,including marking all messages as read, removing the last user from aprivate stream, and disabling all notifications for direct messages.-- Added support for Postgres 15, and removed support for Postgres 11.+- Added support for PostgreSQL 15, and removed support for PostgreSQL 11.- Added new `z` keyboard shortcut to view a message in context.- Added new `=` keyboard shortcut to upvote an existing emoji reaction.- Changed the `s` keyboard shortcut to be a toggle, replacing the@@ -1770,8 +1778,8 @@ _Released 2022-11-17_#### Upgrade notes for 6.0- Installations using [docker-zulip][docker-zulip] will need to [upgrade- Postgres][docker-zulip-upgrade-database] before upgrading to Zulip- 6.0, because the previous default of Postgres 10 is no longer+ PostgreSQL][docker-zulip-upgrade-database] before upgrading to Zulip+ 6.0, because the previous default of PostgreSQL 10 is no longersupported by this release.- Installations using the AzureAD authentication backend will need toupdate `/etc/zulip/zulip-secrets.conf` after upgrading. The@@ -2081,7 +2089,8 @@ _Released 2022-03-29_- Improved various interaction and performance details in "Recent topics".- Improved styling for poll and todo list widgets.- Zulip now supports configuring the database name and username when- using a remote Postgres server. Previously, these were hardcoded to "zulip".+ using a remote PostgreSQL server. Previously, these were hardcoded+ to "zulip".- Migrated many tooltips to prettier tooltips powered by TippyJS.- Autocomplete is now available when editing topics.- Typeahead for choosing a topic now consistently fetches the full setdiff --git a/docs/production/deployment.md b/docs/production/deployment.mdindex 608a67d3754..ae3b8c024fc 100644--- a/docs/production/deployment.md+++ b/docs/production/deployment.md@@ -74,7 +74,7 @@ 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 13, 14, 15, and 16, with 16+ installed. We currently support PostgreSQL 13, 14, 15, 16, and 17, with 17being the default.- `--postgresql-database-name=exampledbname`: With this option, youdiff --git a/docs/production/postgresql-support-table.md b/docs/production/postgresql-support-table.mdindex e8639dc2b43..a1cb63467ec 100644--- a/docs/production/postgresql-support-table.md+++ b/docs/production/postgresql-support-table.md@@ -8,3 +8,4 @@| 8.x | 12, 13, 14, 15, 16 || 9.x | 12, 13, 14, 15, 16 || 10.x | 13, 14, 15, 16 |+| 11.x | 13, 14, 15, 16, 17 |diff --git a/docs/production/postgresql.md b/docs/production/postgresql.mdindex 9ea3ed2d659..7ee7bddf8f0 100644--- a/docs/production/postgresql.md+++ b/docs/production/postgresql.md@@ -84,7 +84,7 @@ Set the remote server's PostgreSQL version in `/etc/zulip/zulip.conf`:```ini[postgresql]# Set this to match the version running on your remote PostgreSQL server-version = 16+version = 17```Now complete the installation by running the following commands.@@ -154,7 +154,7 @@ Set the remote server's PostgreSQL version in `/etc/zulip/zulip.conf`:```ini[postgresql]# Set this to match the version running on your remote PostgreSQL server-version = 16+version = 17```Now complete the installation by running the following commands.diff --git a/puppet/zulip/manifests/profile/postgresql.pp b/puppet/zulip/manifests/profile/postgresql.ppindex 40d223a9248..bafe1ef5f3a 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', '16'] {+ } elsif $version in ['15', '16', '17'] {$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 160739245db..91b0ee40f77 100755--- a/scripts/lib/install+++ b/scripts/lib/install@@ -30,7 +30,7 @@ Options:Sets the PostgreSQL database name.--postgresql-database-user=zulipSets the PostgreSQL database user.- --postgresql-version=16+ --postgresql-version=17Sets the version of PostgreSQL that will be installed.--postgresql-missing-dictionariesSet postgresql.missing_dictionaries, which alters the initial database. Use with@@ -205,7 +205,7 @@ read -r -a ADDITIONAL_PACKAGES <<<"${ADDITIONAL_PACKAGES:-}"# zulip::profile::docker for Docker. Use# e.g. zulip::profile::app_frontend for a Zulip frontend server.PUPPET_CLASSES="${PUPPET_CLASSES:-zulip::profile::standalone}"-POSTGRESQL_VERSION="${POSTGRESQL_VERSION:-16}"+POSTGRESQL_VERSION="${POSTGRESQL_VERSION:-17}"if [ -n "$SELF_SIGNED_CERT" ] && [ -n "$USE_CERTBOT" ]; thenset +xdiff --git a/scripts/setup/upgrade-postgresql b/scripts/setup/upgrade-postgresqlindex e2d2c359492..c0c17666148 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=16+LATEST_SUPPORTED_VERSION=17UPGRADE_TO=${1:-$LATEST_SUPPORTED_VERSION}UPGRADE_FROM=$(crudini --get /etc/zulip/zulip.conf postgresql version)ZULIP_PATH="$(dirname "$0")/../.."