Skip to content

Conversation

@jumski
Copy link
Contributor

@jumski jumski commented Nov 2, 2025

Summary

This PR upgrades the pgflow project to PostgreSQL 17 and Supabase CLI 2.54.11, removing strict version pins for Docker images and the PGMQ extension to use the latest compatible versions.

Changes

PostgreSQL Version Upgrade

  • PostgreSQL 15 → PostgreSQL 17 across all environments:
    • Atlas migration Docker image (pkgs/core/atlas/Dockerfile)
    • Edge worker test database (pkgs/edge-worker/tests/db/compose.yaml)
    • Supabase config files (all config.toml files)
    • Atlas configuration (pkgs/core/atlas/atlas.hcl)
    • Build and deployment scripts

PGMQ Version Management

  • Updated Atlas Docker image to use PGMQ v1.5.1 (from v1.4.4)
  • Removed strict version pins to allow using latest compatible PGMQ versions in production environments
  • This prepares for the next PR which requires PGMQ 1.5.0+ features

Configuration Updates

Updated PostgreSQL version references in:

  • examples/playground/supabase/config.toml
  • pkgs/client/supabase/config.toml
  • pkgs/core/supabase/config.toml
  • pkgs/edge-worker/supabase/config.toml
  • pkgs/core/atlas/atlas.hcl

Database Types

  • Regenerated TypeScript database types (pkgs/core/src/database-types.ts) to reflect PostgreSQL 17 schema
  • Updated package dependencies in pnpm-lock.yaml

Cleanup

  • Removed temporary Supabase version tracking files:
    • pkgs/core/supabase/.temp/pgmeta-version
    • pkgs/core/supabase/.temp/postgres-version

Documentation

  • Added documentation update task to pkgs/website/src/content/docs/deploy/update-pgflow.mdx for upgrade procedures

Testing

All existing tests pass with PostgreSQL 17. No functional changes to pgflow behavior.

Impact

  • Users: No breaking changes. Existing deployments will continue to work.
  • New Deployments: Will use PostgreSQL 17 by default
  • Self-hosted: Upgrading PostgreSQL version may require database migration depending on your hosting setup

Related

@changeset-bot
Copy link

changeset-bot bot commented Nov 2, 2025

🦋 Changeset detected

Latest commit: c35fab0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
Name Type
@pgflow/core Minor
@pgflow/client Minor
@pgflow/edge-worker Minor
@pgflow/website Minor
pgflow Minor
@pgflow/example-flows Minor
@pgflow/demo Minor
@pgflow/dsl Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor Author

jumski commented Nov 2, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge:queue - adds this PR to the back of the merge queue
  • hotfix:queue - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@nx-cloud
Copy link

nx-cloud bot commented Nov 2, 2025

View your CI Pipeline Execution ↗ for commit c35fab0

Command Status Duration Result
nx test:types:health dsl ✅ Succeeded 15s View ↗

☁️ Nx Cloud last updated this comment at 2025-11-12 23:20:39 UTC

@jumski jumski force-pushed the chore-update-supabase-versions branch 4 times, most recently from 8f99711 to b05ba56 Compare November 9, 2025 16:06
@jumski jumski force-pushed the chore-update-supabase-versions branch 6 times, most recently from eba7284 to f8447bd Compare November 12, 2025 22:58
Comment on lines +91 to +92

**File**: `pkgs/core/schemas/0080_function_read_with_poll.sql` (entire file)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR description and PLAN.md mention deleting schemas/0080_function_read_with_poll.sql as part of Task 2, but this file deletion isn't included in the actual PR diff. This backport function should be removed since PGMQ 1.5.1 includes the fixed version natively.

Consider adding this deletion to complete the migration from the custom backport to the native implementation, which aligns with the comment in the file that states it "will be removed once Supabase upgrades to 1.5.0 or higher."

Spotted by Graphite Agent

Fix in Graphite


Is this helpful? React 👍 or 👎 to let us know.

…kerfiles, and scripts

- Changed major_version from 15 to 17 in multiple config files for various environments
- Updated Dockerfile to use postgres:17 and related build scripts for new image
- Modified Atlas setup to rely on custom postgres:17-pgmq image
- Adjusted database type definitions for compatibility with PostgreSQL 17
- Updated compose files to reference the new PostgreSQL 17 image
- Added note in documentation about PostgreSQL 17 support and migration guidance
@jumski jumski force-pushed the chore-update-supabase-versions branch from f8447bd to c35fab0 Compare November 12, 2025 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants