Skip to content

feat(deploy): control shared PostgreSQL schema maintenance and recovery - #846

Merged
LIghtJUNction merged 65 commits into
mainfrom
release/go112-combined-native-20261012
Oct 11, 2026
Merged

LIghtJUNction merged 65 commits into
mainfrom
release/go112-combined-native-20261012

Conversation

@LIghtJUNction

@LIghtJUNction LIghtJUNction commented Oct 11, 2026 •

Copy link
Copy Markdown
Member

The latest backend needs an updated PostgreSQL schema, while the running providers seal the complete current catalog. Add a dedicated schema-only maintenance path that preserves financial rows and old table/index identities, then creates honest post-upgrade recovery capsules before the normal combined backend/frontend transaction.

The native controller closes admission, drains and stops both writers, retains three deployment locks, verifies an encrypted backup through a full isolated restore, and runs DDL once in a single transaction. Canonical receipts bind the owner, preserved-data outcome, recovery hooks and process generations. Pre-claim abort and dead-daemon recovery before worker execution restore unchanged providers; uncertain mutations are reconciled without replaying DDL or sweeping unknown ownership.

Validation: full local Go 1.25.1 suite passed at d259dd2. The final 67818a6 delta is confined to the deployment CLI; application, schema/model, guardian script and publisher objects are identical. Final Go 1.25.1 deployment CLI/app CLI/fence race tests with disposable PostgreSQL passed (52.051s). Separate qualifications cover encrypted full restore, preserved schema/data, negative owner/type cases and original guardian continuity. Evidence recorder tests and formatting checks passed.

Production remains Go 0.2.111 / Web 0.1.145. Go112 publication and actual isolated systemd installation/recovery validation follow this merge; production DDL requires the completed caller and that validation. This path uses a maintenance window and does not claim zero downtime.

@LIghtJUNction
LIghtJUNction marked this pull request as ready for review October 11, 2026 23:04
Copilot AI balanced review requested due to automatic review settings October 11, 2026 23:04
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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