Skip to content

Commit dfa795f

Browse files
jhfclaude
andcommitted
Fix CI: drop pre-existing PG clusters, use port 5432
Ubuntu 24.04 runners have a pre-installed PG cluster on port 5432. Drop all existing clusters before creating PG 18 on port 5432. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 5c0e71f commit dfa795f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/regression.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ jobs:
1818
1919
- name: Start PostgreSQL 18
2020
run: |
21-
sudo pg_createcluster 18 main --start
21+
sudo pg_lsclusters -h | awk '{print $1, $2}' | while read ver name; do sudo pg_dropcluster --stop "$ver" "$name" 2>/dev/null || true; done
22+
sudo pg_createcluster 18 main --start --port 5432
2223
sudo -u postgres createuser -s $(whoami)
2324
2425
- name: Add pg_config to PATH

0 commit comments

Comments
 (0)