Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

install: Support PostgreSQL 18.

Alex Vandiver359e5c2b78b1
diff --git a/docs/production/deployment.md b/docs/production/deployment.md
index 1d1c56dbe09..e6f80718509 100644
--- a/docs/production/deployment.md
+++ b/docs/production/deployment.md
@@ -74,8 +74,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 14, 15, 16, and 17, with 17
- being the default.
+ installed. We currently support PostgreSQL 14, 15, 16, 17, and 18,
+ with 18 being the default.
- `--postgresql-database-name=exampledbname`: With this option, you
can customize the default database name. If you do not set this. The
diff --git a/docs/production/postgresql-support-table.md b/docs/production/postgresql-support-table.md
index 7afea13954e..2f920338b04 100644
--- a/docs/production/postgresql-support-table.md
+++ b/docs/production/postgresql-support-table.md
@@ -5,4 +5,4 @@
| 9.x | 12, 13, 14, 15, 16 |
| 10.x | 13, 14, 15, 16, 17 |
| 11.x | 14, 15, 16, 17 |
-| 12.x (unreleased) | 14, 15, 16, 17 |
+| 12.x (unreleased) | 14, 15, 16, 17, 18 |
diff --git a/docs/production/postgresql.md b/docs/production/postgresql.md
index c92da50ad13..52953f7cd06 100644
--- a/docs/production/postgresql.md
+++ b/docs/production/postgresql.md
@@ -83,7 +83,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 = 17
+version = 18
```
Now complete the installation by running the following commands.
@@ -153,7 +153,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 = 17
+version = 18
```
Now complete the installation by running the following commands.
diff --git a/puppet/zulip/manifests/profile/postgresql.pp b/puppet/zulip/manifests/profile/postgresql.pp
index 1303e8ded82..926513c8af7 100644
--- a/puppet/zulip/manifests/profile/postgresql.pp
+++ b/puppet/zulip/manifests/profile/postgresql.pp
@@ -54,7 +54,7 @@ class zulip::profile::postgresql(Boolean $start = true) {
mode => '0644',
content => template("zulip/postgresql/${version}/postgresql.conf.template.erb"),
}
- } elsif $version in ['15', '16', '17'] {
+ } elsif $version in ['15', '16', '17', '18'] {
$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/install
index 5c513bc6a3b..dfe1f0b57cc 100755
--- a/scripts/lib/install
+++ b/scripts/lib/install
@@ -30,7 +30,7 @@ Options:
Sets the PostgreSQL database name.
--postgresql-database-user=zulip
Sets the PostgreSQL database user.
- --postgresql-version=17
+ --postgresql-version=18
Sets the version of PostgreSQL that will be installed.
--no-init-db
@@ -198,7 +198,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:-17}"
+POSTGRESQL_VERSION="${POSTGRESQL_VERSION:-18}"
if [ -n "$SELF_SIGNED_CERT" ] && [ -n "$USE_CERTBOT" ]; then
set +x
diff --git a/scripts/setup/upgrade-postgresql b/scripts/setup/upgrade-postgresql
index 1115af9f78b..ac9603fefcd 100755
--- a/scripts/setup/upgrade-postgresql
+++ b/scripts/setup/upgrade-postgresql
@@ -12,7 +12,7 @@ export LC_ALL=C.UTF-8
export LANG=C.UTF-8
export LANGUAGE=C.UTF-8
-LATEST_SUPPORTED_VERSION=17
+LATEST_SUPPORTED_VERSION=18
UPGRADE_TO=${1:-$LATEST_SUPPORTED_VERSION}
UPGRADE_FROM=$(crudini --get /etc/zulip/zulip.conf postgresql version)
ZULIP_PATH="$(dirname "$0")/../.."