-
Notifications
You must be signed in to change notification settings - Fork 15
docs: add a 0.8.0 release post and update README.md #390
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
jumski
wants to merge
1
commit into
chore-remove-backports-and-update-to-new-pgmq
from
11-17-docs_add_a_0.8.0_release_post_and_update_readme.md
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| --- | ||
| '@pgflow/core': minor | ||
| '@pgflow/client': minor | ||
| '@pgflow/edge-worker': minor | ||
| '@pgflow/website': minor | ||
| --- | ||
|
|
||
| BREAKING CHANGE: pgflow 0.8.0 requires pgmq 1.5.0+, PostgreSQL 17, and Supabase CLI 2.34.3+ | ||
|
|
||
| This version modernizes infrastructure dependencies and will NOT work with pgmq 1.4.x or earlier. The migration includes a compatibility check that aborts with a clear error message if requirements are not met. | ||
|
|
||
| **Requirements:** | ||
| - pgmq 1.5.0 or higher (previously supported 1.4.x) | ||
| - PostgreSQL 17 (from 15) | ||
| - Supabase CLI 2.34.3 or higher (includes pgmq 1.5.0+) | ||
|
|
||
| **For Supabase users:** Upgrade your Supabase CLI to 2.34.3+ which includes pgmq 1.5.0 by default. | ||
|
|
||
| **For self-hosted users:** Upgrade pgmq to 1.5.0+ and PostgreSQL to 17 before upgrading pgflow. | ||
|
|
||
| **If you cannot upgrade immediately:** Stay on pgflow 0.7.x until your infrastructure is ready. The migration safety check ensures you cannot accidentally upgrade to an incompatible version. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
pkgs/core/supabase/migrations/20251104080523_pgflow_upgrade_pgmq_1_5_1.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+1.7 MB
...r-images/pgflow-0-8-0-modernizing-dependencies-pgmq-1-5-0-and-postgresql-17.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
112 changes: 112 additions & 0 deletions
112
...ocs/news/pgflow-0-8-0-modernizing-dependencies-pgmq-1-5-0-and-postgresql-17.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,112 @@ | ||
| --- | ||
| draft: false | ||
| title: 'pgflow 0.8.0: Modernizing Dependencies - pgmq 1.5.0 and PostgreSQL 17' | ||
| description: 'Breaking changes requiring pgmq 1.5.0 or higher and PostgreSQL 17, with built-in migration safety checks' | ||
| date: 2025-11-18 | ||
| authors: | ||
| - jumski | ||
| tags: | ||
| - release | ||
| - breaking-change | ||
| - migration | ||
| featured: true | ||
| cover: | ||
| alt: 'Cyberpunk hacker upgrading database dependencies on a glitchy terminal screen' | ||
| image: '../../../assets/cover-images/pgflow-0-8-0-modernizing-dependencies-pgmq-1-5-0-and-postgresql-17.png' | ||
| --- | ||
|
|
||
| import { Aside } from "@astrojs/starlight/components"; | ||
|
|
||
| pgflow 0.8.0 requires pgmq 1.5.0 or higher and PostgreSQL 17. This release removes the pgmq compatibility layer and prepares the foundation for upcoming flow auto-compilation features. | ||
|
|
||
| <Aside type="caution" title="Breaking Change"> | ||
| This version will NOT work with pgmq 1.4.x or earlier. The migration includes a compatibility check that will abort with a clear error message if pgmq 1.5.0 is not detected. | ||
| </Aside> | ||
|
|
||
| ## What's Changing | ||
|
|
||
| pgflow 0.8.0 introduces breaking dependency changes: | ||
|
|
||
| 1. **pgmq version**: Now requires 1.5.0 or higher (previously supported 1.4.x) | ||
| 2. **PostgreSQL version**: Upgrades to PostgreSQL 17 (from 15) | ||
| 3. **Supabase CLI**: Requires version 2.34.3 or higher (includes pgmq 1.5.0+) | ||
|
|
||
| The migration will fail safely if these requirements are not met - no partial upgrades or corrupted state. | ||
|
|
||
| ## Background | ||
|
|
||
| This release skips backward compatibility entirely - pgflow 0.8.0 requires pgmq 1.5.0 from the start. Maintaining compatibility layers for older versions would accumulate technical debt that becomes harder to remove as the project matures. | ||
|
|
||
| Additionally, upcoming features like flow auto-compilation depend on infrastructure available only in newer Supabase versions (automatic edge function respawning in local development). Moving to pgmq 1.5.0 and PostgreSQL 17 unblocks these improvements. | ||
|
|
||
| ## Before You Upgrade | ||
|
|
||
| ### Check Your pgmq Version | ||
|
|
||
| Run this query to verify your current pgmq version: | ||
|
|
||
| ```sql | ||
| SELECT extversion FROM pg_extension WHERE extname = 'pgmq'; | ||
| ``` | ||
|
|
||
| You need version 1.5.0 or higher to upgrade to pgflow 0.8.0. | ||
|
|
||
| ### Compatibility Check Built-In | ||
|
|
||
| The migration includes a pre-check that inspects the pgmq schema before making any changes. If pgmq 1.5.0 is not detected, the migration aborts with this error: | ||
|
|
||
| ``` | ||
| ERROR: INCOMPATIBLE PGMQ VERSION DETECTED | ||
|
|
||
| This migration requires pgmq 1.5.0 or higher. | ||
| The pgmq.message_record type is missing the "headers" column, | ||
| which indicates you are running pgmq < 1.5.0. | ||
|
|
||
| Action required: | ||
| - Supabase: Ensure you are running a recent version that includes pgmq 1.5.0+ | ||
| - Self-hosted: Upgrade pgmq to version 1.5.0 or higher before running this migration | ||
|
|
||
| Migration aborted to prevent runtime failures. | ||
| ``` | ||
|
|
||
| This safety check prevents partial migrations and data corruption. | ||
|
|
||
| ## Migration Guide | ||
|
|
||
| ### Supabase Cloud Users | ||
|
|
||
| Supabase CLI version 2.34.3 or higher includes pgmq 1.5.0 by default. To upgrade: | ||
|
|
||
| 1. Update your Supabase CLI if needed: | ||
| ```bash | ||
| supabase -v # Check current version | ||
| npm install -g supabase # Update if below 2.34.3 | ||
| ``` | ||
| 2. Verify your pgmq version using the SQL query above | ||
| 3. If you have pgmq 1.5.0+, run your migrations normally: | ||
| ```bash | ||
| supabase db push | ||
| ``` | ||
| 4. If you have pgmq 1.4.x, wait for your Supabase instance to upgrade before updating pgflow | ||
|
|
||
| ### Self-Hosted Users | ||
|
|
||
| You must upgrade pgmq to 1.5.0+ before upgrading pgflow: | ||
|
|
||
| 1. Check your current pgmq version | ||
| 2. Upgrade pgmq to 1.5.0 or higher following the [pgmq upgrade guide](https://github.com/tembo-io/pgmq) | ||
| 3. Upgrade PostgreSQL to version 17 if not already running it | ||
| 4. Run your pgflow migrations: | ||
| ```bash | ||
| supabase db push | ||
| ``` | ||
|
|
||
| ## What If I Can't Upgrade? | ||
|
|
||
| If you cannot upgrade to pgmq 1.5.0 immediately, stay on pgflow 0.7.x. The migration safety check ensures you cannot accidentally upgrade to an incompatible version. | ||
|
|
||
| Your existing pgflow 0.7.x installation will continue working until you are ready to upgrade your infrastructure. | ||
|
|
||
| --- | ||
|
|
||
| For questions or issues with the upgrade, visit the [pgflow Discord](https://www.pgflow.dev/discord/) or [open a GitHub issue](https://github.com/pgflow-dev/pgflow/issues). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.