Add PostgreSQL 18 support to Github Actions (#816)

* Run against PostgreSQL 18
* Handle constraints for pg18
* Bump golangci-linter to 1.62.2 (#772)
* Bump golangci-linter to 1.62.2
* Address linting warning via change or ignore
This commit is contained in:
Dan Sosedoff
2025-11-11 11:30:42 -08:00
committed by GitHub
parent 4ce11c039e
commit e3085a44ba
3 changed files with 13 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ jobs:
timeout-minutes: 40
strategy:
matrix:
pg_version: [9.6, 10, 11, 12, 13, 14, 15, 16, 17]
pg_version: [9.6, 10, 11, 12, 13, 14, 15, 16, 17, 18]
services:
postgres:
@@ -50,7 +50,7 @@ jobs:
sudo rm -f /etc/apt/sources.list.d/pgdg.list
curl --silent https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add
echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list
sudo apt-get update && sudo apt-get install -y postgresql-client-17
sudo apt-get update && sudo apt-get install -y postgresql-client-18
- uses: actions/checkout@v3
with:

View File

@@ -1,6 +1,4 @@
---
version: "3.9"
x-base: &base
environment: &env
POSTGRES_DB: pgweb
@@ -11,6 +9,16 @@ x-base: &base
interval: 5s
services:
postgres18:
<<: *base
image: postgres:18
ports:
- 5433:5432
postgres17:
<<: *base
image: postgres:17
ports:
- 5433:5432
postgres16:
<<: *base
image: postgres:16

View File

@@ -10,5 +10,6 @@ JOIN
WHERE
n.nspname = $1
AND relname = $2
AND contype != 'n'
ORDER BY
contype DESC