Skip to content

Add PostgreSQL 18 support - #73

Draft
expaso with Copilot wants to merge 2 commits into
mainfrom
copilot/add-support-for-postgres-18
Draft

expaso with Copilot wants to merge 2 commits into
mainfrom
copilot/add-support-for-postgres-18

Conversation

Copilot AI commented Mar 29, 2026

Copy link
Copy Markdown
Contributor

Adds PG18 as the new default, upgrading from PG17. Requires Alpine 3.22 (available in hassio-addons/base v18.x) since PG18 packages aren't in Alpine 3.21.

Base image

  • Bump build.yaml base images from 17.2.518.2.1 (Alpine 3.21 → 3.22)

Dockerfile

  • Add timescale/timescaledb:2.26.0-pg18 FROM stage
  • Add FROM stages for all new pg18 pre-built dependencies
  • Install postgresql18 (+ jit/dev/contrib) APK packages
  • Flip default symlink: /usr/libexec/postgresqlpostgresql18
  • Update Alpine CDN repo references from v3.21v3.22
  • Copy all pg18 extensions (PostGIS, TimescaleDB, toolkit, pgAgent, system-stat, pgVector)
  • Retain pg16 + pg17 packages/extensions for the upgrade chain

New docker-dependency Dockerfiles

All built against timescale/timescaledb:latest-pg18:

  • pgagent-pg18
  • postgis-pg18
  • timescaledb-toolkit-pg18 (pgrx config updated to pg18)
  • postgresql-extension-system-stat-pg18
  • pgvector-pg18

Automatic upgrade

Added pg17→pg18 upgrade step in init-addon/run, enabling the full chained upgrade path:

PG16 → PG17 → PG18

Each step runs sequentially via consecutive if checks on PG_VERSION, so users on any supported version upgrade in a single addon restart.

Documentation

Updated .README.j2 version header to reflect PostgreSQL 18, TimescaleDB 2.26.0, and TimescaleDB Toolkit 1.22.0.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • pkgs.alpinelinux.org
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


⚡ Quickly spin up Copilot coding agent tasks from anywhere on your macOS or Windows machine with Raycast.

Copilot AI linked an issue Mar 29, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Add support for Postgres 18 Add PostgreSQL 18 support Mar 29, 2026
Copilot AI requested a review from expaso March 29, 2026 19:53
@expaso expaso added new-feature New features or options. major This PR causes a major version bump in the version number. labels Mar 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

major This PR causes a major version bump in the version number. new-feature New features or options.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FR: PG18

2 participants