Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y createrepo-c dpkg-dev rpm python3
- name: Generate repository from v1.0-0
- name: Generate repository from v1.2-0
env:
DOCUMENTDB_VERSION: v1.0-0
DOCUMENTDB_VERSION: v1.2-0
run: .github/scripts/download_packages.sh
- name: Verify release inventory and metadata
run: python3 .github/scripts/verify_package_inventory.py
Expand Down
52 changes: 26 additions & 26 deletions PACKAGE-INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Repository-backed installation commands for DocumentDB.

> This repository serves v1.0-0.
> This repository serves v1.2-0.

## Clean-host installer

Expand All @@ -13,9 +13,9 @@ curl -fsSLo documentdb-install.sh https://documentdb.io/install.sh &&
sudo sh documentdb-install.sh
```

This installs v1.0-0 from this repository on PostgreSQL 18; add `--pg-major 17`
This installs v1.2-0 from this repository on PostgreSQL 18; add `--pg-major 17`
for 17. On a host where DocumentDB is already set up, it only reports that instance's status
and doesn't upgrade it; to move an existing install to 1.0, see
and doesn't upgrade it; to move an existing install to 1.2, see
[Upgrading an existing install](#upgrading-an-existing-install).

The site serves the `install.sh` attached to the release named in
Expand Down Expand Up @@ -225,7 +225,7 @@ Before using this anywhere but a private machine:

```bash
sudo documentdb-setup --status # gateway listener, service states, resolved paths
documentdb-gateway --version # DocumentDB version (1.0.0)
documentdb-gateway --version # DocumentDB version (1.2.0)
dpkg -l | grep documentdb # or: rpm -qa | grep documentdb
```

Expand Down Expand Up @@ -368,9 +368,11 @@ The current release publishes PostgreSQL 17 and 18. Install `documentdb-17` or

## Upgrading an existing install

Package installs from v0.116 or v0.117 upgrade in place to 1.0. Move the entire stack
Package installs from 1.0.0 upgrade in place to 1.2. Move the entire stack
together; upgrading only `postgresql-N-documentdb` does not update the gateway, tools, common
payload, or `documentdb-N`. These steps use systemd; upgrading a host without it isn't covered here.
There is no downgrade: an older release starts on the updated catalog, but some commands then fail,
so back up the data directory first if you may need to go back.
On a package-managed private PostgreSQL 18 instance:

> **Warning:** A host that ran a 1.0 release candidate (RC1 or RC2) has no upgrade path. Use a
Expand All @@ -391,18 +393,17 @@ sudo dnf upgrade documentdb-18 postgresql18-documentdb \
documentdb-common documentdb-gateway documentdb-postgresql-tools
```

Upgrading the packages does not update the database catalog. The simplest way is to restart
PostgreSQL so it loads the new libraries, then re-run setup with the options you installed with.
Setup updates the extensions and then starts the gateway:
Upgrading the packages does not update the database catalog. Re-run setup with the PostgreSQL
major, plus any `--data-dir` or `--pg-port` you installed with. It restarts PostgreSQL once to
load the new libraries, updates the extensions, and then starts the gateway:

```bash
sudo systemctl restart documentdb-postgresql@18.service &&
sudo documentdb-setup --pg-version 18 --use-new-postgres-instance --admin-user admin
sudo documentdb-setup --pg-version 18 --yes
```

Setup adds any missing `shared_preload_libraries` entries and updates the extensions, but only in
the `postgres` database. If your gateway uses another database, take the manual route below. It also asks for the admin password and sets it on the existing admin
user: enter the current password to keep it.
Without `--admin-user`, setup asks for no password and keeps every admin user and password as
they are. It adds any missing `shared_preload_libraries` entries and updates the extensions, but only in
the `postgres` database. If your gateway uses another database, take the manual route below.

To update by hand, or for every other database that has DocumentDB installed, first check that
the extended RUM library is preloaded:
Expand All @@ -411,7 +412,7 @@ the extended RUM library is preloaded:
sudo -u documentdb-local psql -h /run/documentdb-local/18/postgresql -p 9718 -d postgres -X -Atc "SHOW shared_preload_libraries;"
```

If `pg_documentdb_extended_rum` is missing (possible on a 0.116 install), add it before updating;
If `pg_documentdb_extended_rum` is missing (possible on a host first set up with 0.116), add it before updating;
the update below would succeed without it, and index builds would fail later. If the gateway uses
`postgres`, re-run setup as above. If it uses another database, add the library to
`shared_preload_libraries` in the instance's `postgresql.conf` yourself: setup would point the
Expand Down Expand Up @@ -439,12 +440,11 @@ On a host with both PostgreSQL 17 and 18, `documentdb-common`, `documentdb-gatew
(`documentdb-gateway-local@17.service` and `@18.service`) before upgrading, then update each major.

For an adopted PostgreSQL instance, setup never restarts PostgreSQL. Stop the gateway
(`documentdb-gateway-local@18.service`) before upgrading, restart the operator-managed PostgreSQL
service yourself, then re-run
`documentdb-setup --pg-version 18 --target-postgres-instance 18/main --admin-user admin` (with your cluster name); it
updates the extensions and then starts the gateway. If
setup has to change `shared_preload_libraries`, it exits without updating the extensions: restart
PostgreSQL and run it once more. By hand, use that instance's own `psql` connection.
(`documentdb-gateway-local@18.service`) before upgrading, then run
`sudo documentdb-setup --target-postgres-instance 18/main --yes` (with your cluster name). It
prints the command that restarts your PostgreSQL service and the setup command to run after it,
then exits without updating the extensions. Run both; the second run updates the extensions and
starts the gateway. By hand, use that instance's own `psql` connection.

Confirm afterwards with:

Expand Down Expand Up @@ -479,17 +479,17 @@ published in the documentdb.io package repositories. Community builds are welcom
For example, after checking out the matching release tag, build an extension package with:

```bash
./packaging/build_packages.sh --os deb12 --pg 16 --version 1.0.0
./packaging/build_packages.sh --os deb12 --pg 16 --version 1.2.0
```

`v1.0-0` and `v1.0-RC2` are on the same commit, so pass `--version`; without it the scripts can build RC-versioned packages. That command builds only `postgresql-N-documentdb`. A custom full-stack package set uses
Without `--version`, the script takes the version from the checked-out release tag, or else from the control file; at `v1.2-0` both give 1.2.0. That command builds only `postgresql-N-documentdb`. A custom full-stack package set uses
three entry points:

- `packaging/build_packages.sh` — PostgreSQL extension
- `packaging/gateway/build_gateway_packages.sh` — wire-protocol gateway
- `packaging/build_extra_packages.sh` — tools, common payload, `documentdb-N`, and meta package

The [v1.0 packaging guide](https://github.com/documentdb/documentdb/blob/v1.0-0/packaging/README.md)
The [v1.2 packaging guide](https://github.com/documentdb/documentdb/blob/v1.2-0/packaging/README.md)
documents their required arguments, version formats, prerequisites, and accepted targets.
PostgreSQL 15 remains extension-only for package-managed installs because the setup tools
require PostgreSQL 16 or newer.
Expand All @@ -504,9 +504,9 @@ they do not retain packages from older releases.
Examples:

```text
ubuntu24.04-documentdb_1.0.0_all.deb
ubuntu24.04-postgresql-18-documentdb_1.0-0_amd64.deb
rhel9-postgresql18-documentdb-1.0.0-1.el9.x86_64.rpm
ubuntu24.04-documentdb_1.2.0_all.deb
ubuntu24.04-postgresql-18-documentdb_1.2-0_amd64.deb
rhel9-postgresql18-documentdb-1.2.0-1.el9.x86_64.rpm
```

For a full stack, pass the five packages for the selected PostgreSQL major to one command:
Expand Down
12 changes: 6 additions & 6 deletions app/lib/releaseInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ export type ReleaseInfo = {

// A reference release, not evidence of current repository availability.
export const FALLBACK_RELEASE: ReleaseInfo = {
tagName: "v1.0-0",
aptVersion: "1.0-0",
rpmVersion: "1.0.0-1.el9",
metaVersion: "1.0.0",
metaRpmVersion: "1.0.0-1",
releaseUrl: "https://github.com/documentdb/documentdb/releases/tag/v1.0-0",
tagName: "v1.2-0",
aptVersion: "1.2-0",
rpmVersion: "1.2.0-1.el9",
metaVersion: "1.2.0",
metaRpmVersion: "1.2.0-1",
releaseUrl: "https://github.com/documentdb/documentdb/releases/tag/v1.2-0",
assetNames: [],
};

Expand Down
Loading
Loading