Skip to content

Commit

Permalink
Support Postgresql 17.
Browse files Browse the repository at this point in the history
  • Loading branch information
arkhipov committed Nov 6, 2024
1 parent 585224f commit 5d8ee6c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/build-nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
- 14
- 15
- 16
- 17

steps:
- uses: actions/checkout@v3
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/build-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
- 14.9-1
- 15.4-1
- 16.0-1
- 17.0-1
platform:
- x64
include:
Expand Down Expand Up @@ -66,6 +67,11 @@ jobs:
"X64=$x64" >> $env:GITHUB_ENV
"RELEASE_DIR=$release_dir" >> $env:GITHUB_ENV
"PSQL_OPT=$psql_opt" >> $env:GITHUB_ENV
if ("$pg_version" -eq "17") {
"PG_REGRESS=$pg_root\lib\pgxs\src\test\regress\pg_regress.exe" >> $env:GITHUB_ENV
} else {
"PG_REGRESS=$pg_root\bin\pg_regress.exe" >> $env:GITHUB_ENV
}
Invoke-webrequest -uri https://get.enterprisedb.com/postgresql/postgresql-${pg_full_version}-windows${x64}.exe -OutFile postgresql.exe
Expand Down Expand Up @@ -102,7 +108,9 @@ jobs:
Start-Service -Name "postgresql$env:X64-$env:PG_VERSION"
& "$env:PG_ROOT\bin\pg_regress.exe" "$env:PSQL_OPT=$env:PG_ROOT\bin" --dbname=pl_regression install no_system_period invalid_system_period no_history_table no_history_system_period invalid_types invalid_system_period_values versioning versioning_custom_system_time structure uninstall 2>&1 | Out-Default
& "$env:PG_REGRESS" --help 2>&1 | Out-Default
& "$env:PG_REGRESS" "$env:PSQL_OPT=$env:PG_ROOT\bin" --dbname=pl_regression install no_system_period invalid_system_period no_history_table no_history_system_period invalid_types invalid_system_period_values versioning versioning_custom_system_time structure uninstall 2>&1 | Out-Default
if ($LASTEXITCODE -ne 0) {
Get-Content -Path ".\regression.diffs" | Out-Printer
Write-Error "Tests failed"
Expand Down

0 comments on commit 5d8ee6c

Please sign in to comment.