Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
27 changes: 27 additions & 0 deletions docs/postgres-migration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Migrating from jobs/postgres-13 to jobs/postgres

## Background

The `postgres-13` job shipped inside the bosh release is deprecated and will be
removed in the next release. The `postgres` job (PostgreSQL 15) is the
supported replacement.

## Switching from jobs/postgres-13 to jobs/postgres

The `postgres` job in the bosh release runs PostgreSQL 15 and handles the
major-version upgrade from 13 automatically.

Update your director manifest to replace the `postgres-13` job with `postgres`:

```yaml
instance_groups:
- name: bosh
jobs:
- name: postgres # was: postgres-13
release: bosh
```

No property changes are needed — both jobs share the same `postgres.*`
property namespace. On the first deploy, the `postgres` job detects the
existing `/var/vcap/store/postgres-13` data directory and runs `pg_upgrade`
to PostgreSQL 15 automatically.
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
1 change: 1 addition & 0 deletions jobs/postgres-13/spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
name: postgres-13
description: "DEPRECATED: This job will be removed in the next bosh release. Use the postgres job from cloudfoundry/postgres-release instead. See docs/postgres-migration.md for upgrade instructions."
Comment thread
ZPascal marked this conversation as resolved.

templates:
bpm.yml: config/bpm.yml
Expand Down
3 changes: 3 additions & 0 deletions jobs/postgres-13/templates/pre-start.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

echo "WARNING: The postgres-13 job is deprecated and will be removed in the next bosh release."
echo "WARNING: Migrate to the postgres job from cloudfoundry/postgres-release. See docs/postgres-migration.md"
Comment thread
ZPascal marked this conversation as resolved.

set -eu
set -o pipefail

Expand Down
Loading