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
29 changes: 22 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,16 @@ jobs:
strategy:
fail-fast: false
matrix:
pg-major: [16, 17, 18]
pg-major: [16, 17, 18, 19]
include:
- pg-major: 16
pg-floor: "16.15"
- pg-major: 17
pg-floor: "17.11"
- pg-major: 18
pg-floor: "18.6"
- pg-major: 19
pg-floor: "19.0"
image:
- target: x86_64-unknown-linux-gnu
runner: ubuntu-22.04
Expand All @@ -176,10 +185,10 @@ jobs:
with:
submodules: recursive

# The runner image ships one major; take the matrix major from PGDG so
# the majors here are independent of the runner's choice. Only the -dev
# package matters: PGXS reads pg_config, nothing is started.
- name: Install PostgreSQL ${{ matrix.pg-major }} headers (PGDG)
# Build against the oldest minor the fleet runs: a module built on newer
# headers can need symbols older minors lack (heap_datum_check from
# 16.16/17.12/18.7). Only the -dev package matters: PGXS reads pg_config.
- name: Install PostgreSQL ${{ matrix.pg-floor }} headers (PGDG archive)
run: |
set -euo pipefail
sudo apt-get update
Expand All @@ -189,9 +198,15 @@ jobs:
| sudo gpg --dearmor -o /usr/share/keyrings/postgres-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/postgres-archive-keyring.gpg] https://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main ${{ matrix.pg-major }}" \
| sudo tee /etc/apt/sources.list.d/pgdg.list
echo "deb [signed-by=/usr/share/keyrings/postgres-archive-keyring.gpg] https://apt-archive.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg-archive main" \
| sudo tee /etc/apt/sources.list.d/pgdg-archive.list
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
postgresql-server-dev-${{ matrix.pg-major }}
pkg=postgresql-server-dev-${{ matrix.pg-major }}
ver=$(apt-cache madison "$pkg" | awk -v f="${{ matrix.pg-floor }}-" 'index($3, f) == 1 {print $3}' | sort -V | tail -1)
test -n "$ver"
sudo apt-get install -y --no-install-recommends --allow-downgrades \
"$pkg=$ver" "postgresql-client-${{ matrix.pg-major }}=$ver"
/usr/lib/postgresql/${{ matrix.pg-major }}/bin/pg_config --version | grep "^PostgreSQL ${{ matrix.pg-floor }} "

# `build` validates a tag against Cargo.toml; this only has to agree
# with the version string that job produces.
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ members = ["bench"]

[package]
name = "walshadow"
version = "0.2.0"
version = "0.2.1"
edition = "2024"
description = "Schema-only Postgres + WAL replay catalog mirror for CDC to ClickHouse"
license = "AGPL-3.0-only"
Expand Down
2 changes: 1 addition & 1 deletion bench/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "walshadow-bench"
version = "0.2.0"
version = "0.2.1"
edition = "2024"
description = "Replication-latency benchmarks (Postgres → ClickHouse / PG standby), engine + CLIs"
license = "AGPL-3.0-only"
Expand Down
1 change: 0 additions & 1 deletion tests/common/bootstrap_ch_fixture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ impl ChServer {
"--mysql_port=",
"--postgresql_port=",
"--grpc_port=",
"--prometheus.port=",
"--listen_host=127.0.0.1",
&format!("--path={}/", data_dir.display()),
// Relative to the server's cwd otherwise, which drops SQL-created
Expand Down
1 change: 0 additions & 1 deletion tests/common/inproc_harness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ impl ChServer {
"--mysql_port=",
"--postgresql_port=",
"--grpc_port=",
"--prometheus.port=",
"--listen_host=127.0.0.1",
&format!("--path={}/", data_dir.display()),
&format!("--logger.log={}/server.log", log_dir.display()),
Expand Down
1 change: 0 additions & 1 deletion tests/emitter_tls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ impl TlsChServer {
"--mysql_port=",
"--postgresql_port=",
"--grpc_port=",
"--prometheus.port=",
"--listen_host=127.0.0.1",
&format!("--path={}/", data_dir.display()),
&format!("--logger.log={}/server.log", log_dir.display()),
Expand Down