fix(postgres): Remove pg18 feature (requires pgrx 0.15.0+)

PostgreSQL 18 support requires pgrx 0.15.0 or later, but we're on
pgrx 0.12.x. Remove pg18 feature flag for now and revert to PG17
as the latest supported version.

Changes:
- Remove pg18 feature from Cargo.toml (pgrx 0.12 incompatible)
- Update CI workflow matrix to test PG14-17 only
- Update Dockerfile default to PG17
- Add comments noting PG18 planned for future pgrx upgrade

PostgreSQL 18 support will be added when upgrading to pgrx 0.15.0+
in a future major release.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
rUv 2025-12-06 17:35:52 +00:00
parent 22664c5ceb
commit 48eac863c2
3 changed files with 8 additions and 7 deletions

View file

@ -27,15 +27,15 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
pg_version: [14, 15, 16, 17, 18]
pg_version: [14, 15, 16, 17]
rust: [stable]
include:
# Test on macOS for pg16 and pg18
# Test on macOS for pg16 and pg17
- os: macos-latest
pg_version: 16
rust: stable
- os: macos-latest
pg_version: 18
pg_version: 17
rust: stable
services:

View file

@ -22,7 +22,7 @@ pg14 = ["pgrx/pg14", "pgrx-tests/pg14"]
pg15 = ["pgrx/pg15", "pgrx-tests/pg15"]
pg16 = ["pgrx/pg16", "pgrx-tests/pg16"]
pg17 = ["pgrx/pg17", "pgrx-tests/pg17"]
pg18 = ["pgrx/pg18", "pgrx-tests/pg18"]
# Note: pg18 requires pgrx 0.15.0+ (planned for future release)
pg_test = []
# SIMD features for compile-time selection

View file

@ -1,8 +1,9 @@
# RuVector-Postgres Development & Testing Dockerfile
# Multi-stage build with PostgreSQL version support (14-18)
# Default: PostgreSQL 18 (latest stable)
# Multi-stage build with PostgreSQL version support (14-17)
# Default: PostgreSQL 17 (latest with pgrx 0.12 support)
# Note: PostgreSQL 18 requires pgrx 0.15.0+ (planned for future release)
ARG PG_VERSION=18
ARG PG_VERSION=17
# ============================================================================
# Builder Stage