pgEdge Spock 5.0.4 + snowflake extensions#2050
Closed
nightness wants to merge 9 commits intosupabase:developfrom
Closed
pgEdge Spock 5.0.4 + snowflake extensions#2050nightness wants to merge 9 commits intosupabase:developfrom
nightness wants to merge 9 commits intosupabase:developfrom
Conversation
- Add spock.nix extension definition with pam and zlib dependencies - Add Spock 3.1.8 to versions.json with hash for PG15 - Add spock.nix to postgres.nix extensions list - Add pg15-log_old_value-pg1514.diff patch for PostgreSQL 15.14 - Update generic.nix to apply Spock patch for PG15 Spock enables bi-directional logical replication between multiple PostgreSQL nodes with conflict resolution support. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Includes patches for: - Logical decoding on standby servers - Logical commit clock (Lamport clock) for transaction ordering - Per-subtransaction commit timestamps - Checkpoint hook for extensions - Log old value support for conflict resolution
- Add SPOCK_PRODUCTION_ISSUES.md documenting critical issues: - Sequence conflicts and solutions - Initial sync failure troubleshooting - Apply worker crash recovery - Add SPOCK_SYSTEM_SETUP.md with complete infrastructure guide: - Topology overview (PRIMARY/STANDBY) - Docker container architecture - Spock node configuration - Network configuration - CLI integration details - Key SQL commands reference - Troubleshooting guide Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Moved from supabase-cli to consolidate all Spock documentation: - SPOCK_SCORECARD.md - Production readiness tests and monitoring queries - SPOCK_DEPLOYMENT_LOG.md - Deployment steps and configuration guide Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Spock 5.0.4
Member
|
Hi @nightness (Also, sidenote: pg_plan_filter has not been deleted) |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This pull request introduces and documents support for the Spock bi-directional replication extension (v5.0.4) and the Snowflake unique ID generator extension (v2.4) for PostgreSQL 15, including their packaging, patches, and integration into the Nix-based build system. It also adds comprehensive operational documentation for Spock deployment, upgrade, production readiness, and critical issue handling. The changes also remove a deprecated extension whose repository has been deleted.
Extension Packaging and Integration:
Added new Nix expressions to package the Spock (
spock.nix) and Snowflake (snowflake.nix) PostgreSQL extensions, supporting multi-version builds, versioned libraries, and, for Spock, the companionspock_outputplugin and required build dependencies. Both are now included in the main PostgreSQL package set. [1] [2] [3]Updated
versions.jsonto track and verify the latest versions and hashes for Spock (5.0.4) and Snowflake (2.4), including supported PostgreSQL versions.For Spock, expanded the set of PostgreSQL patches applied for version 15 to ensure compatibility and support for bi-directional replication features, such as logical decoding on standbys, delta apply functions, and improved commit timestamp handling.
Removed the deprecated
pg_plan_filterextension from the build due to the upstream repository being deleted.Operational Documentation and Production Guidance:
SPOCK_DEPLOYMENT_LOG.mdandSPOCK_PRODUCTION_ISSUES.mdwith detailed, step-by-step instructions for deploying, upgrading, and operating Spock in bi-directional replication setups, including configuration, sequence management, CLI integration, monitoring, and production checklists. These documents also include critical issue workarounds, safe recovery procedures, and recommendations for conflict resolution strategies. [1] [2]Summary of Most Important Changes:
1. Spock and Snowflake Extension Packaging and Integration
spock.nix) and Snowflake (snowflake.nix) with multi-version, versioned library, and extension control file support. Spock build includesspock_outputplugin for v5.x. [1] [2]versions.jsonfor reproducible builds. [1] [2]2. Spock 5.0.4 Patch Management
3. Documentation for Deployment and Production
4. Extension Set Maintenance
pg_plan_filterextension from the build due to the upstream repository deletion.5. Operational Best Practices
Previewtab and select the appropriate sub-template: