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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
34 changes: 34 additions & 0 deletions databases.json
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,40 @@
"method": "physical",
"full_every_days": 7
}
},
{
"name": "Test database - PostgreSQL 19",
"database": "devdb19",
"type": "postgresql",
"username": "devuser",
"password": "changeme",
"port": 5432,
"host": "db-postgres-19",
"generated_id": "19190000-0000-4000-8000-000000000001"
},
{
"name": "Test database - PostgreSQL 19 cluster",
"database": "postgres",
"type": "postgresql-cluster",
"username": "devuser",
"password": "changeme",
"port": 5432,
"host": "db-postgres-19",
"generated_id": "19190000-0000-4000-8000-000000000002"
},
{
"name": "Test database - PostgreSQL 19 physical incremental",
"database": "postgres",
"type": "postgresql-cluster",
"username": "portabase_backup",
"password": "changeme-physical",
"port": 5432,
"host": "db-postgres-19",
"generated_id": "19190000-0000-4000-8000-000000000003",
"options": {
"method": "physical",
"full_every_days": 7
}
}
]
}
17 changes: 17 additions & 0 deletions docker-compose.databases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,22 @@ services:
networks:
- portabase

db-postgres-19:
container_name: db-postgres-19
image: postgres:19-alpine
command: ["postgres", "-c", "summarize_wal=on", "-c", "checkpoint_timeout=60s"]
ports:
- "5441:5432"
volumes:
- postgres-data-19:/var/lib/postgresql
- ./scripts/postgres/physical-init.sh:/docker-entrypoint-initdb.d/10-physical.sh:ro
environment:
- POSTGRES_DB=devdb19
- POSTGRES_USER=devuser
- POSTGRES_PASSWORD=changeme
networks:
- portabase

db-mariadb:
container_name: db-mariadb
image: mariadb:latest
Expand Down Expand Up @@ -213,6 +229,7 @@ volumes:
postgres-data:
postgres-data-2:
postgres-data-physical:
postgres-data-19:
mariadb-data:
mysql-data:
mongodb-data:
Expand Down
31 changes: 11 additions & 20 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -72,26 +72,17 @@ RUN ARCH=$(dpkg --print-architecture) \
ARG TARGETARCH

# =========================
# PostgreSQL client binaries (versions 12-18)
# =========================

RUN for v in 12 13 14 15 16 17 18; do \
mkdir -p /usr/lib/postgresql/$v/bin; \
done

COPY assets/tools/amd64/postgresql/ /tmp/pg-x64/
COPY assets/tools/arm64/postgresql/ /tmp/pg-arm/

RUN if [ "$TARGETARCH" = "amd64" ]; then \
for v in 12 13 14 15 16 17 18; do \
cp -r /tmp/pg-x64/postgresql-$v/bin/* /usr/lib/postgresql/$v/bin/; \
done; \
elif [ "$TARGETARCH" = "arm64" ]; then \
for v in 12 13 14 15 16 17 18; do \
cp -r /tmp/pg-arm/postgresql-$v/bin/* /usr/lib/postgresql/$v/bin/; \
done; \
fi && \
rm -rf /tmp/pg-x64 /tmp/pg-arm && \
# PostgreSQL client binaries
# =========================

COPY assets/tools/${TARGETARCH}/postgresql/ /tmp/pg/

RUN for dir in /tmp/pg/postgresql-*; do \
major=${dir##*-}; \
mkdir -p /usr/lib/postgresql/$major; \
cp -r $dir/bin /usr/lib/postgresql/$major/; \
done && \
rm -rf /tmp/pg && \
chmod +x /usr/lib/postgresql/*/bin/*


Expand Down
2 changes: 1 addition & 1 deletion scripts/postgres/fetch-clients.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ set -euo pipefail
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
SUITE="bookworm-pgdg"
BASE="https://apt.postgresql.org/pub/repos/apt"
VERSIONS=(12 13 14 15 16 17 18)
VERSIONS=(12 13 14 15 16 17 18 19)
ARCHES=(amd64 arm64)

work="$(mktemp -d)"
Expand Down
5 changes: 5 additions & 0 deletions src/tests/domain/cluster/physical.rs
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,11 @@ async fn chain_restore_round_trip_pg18() {
chain_restore_round_trip("18").await;
}

#[tokio::test]
async fn chain_restore_round_trip_pg19() {
chain_restore_round_trip("19").await;
}

#[tokio::test]
async fn encrypted_chain_restores() {
init_tracing_for_test();
Expand Down
Loading