Skip to content

fix(breg): support optional field insertion in retained views - #2962

Draft
jeremi wants to merge 4 commits into
mainfrom
jeremi/v053-breg-retained-view
Draft

jeremi wants to merge 4 commits into
mainfrom
jeremi/v053-breg-retained-view

Conversation

@jeremi

@jeremi jeremi commented Dec 4, 2026

Copy link
Copy Markdown
Member

Change

Permit an optional field to be inserted before existing fields in a BReg project. When PostgreSQL needs new view column positions, the additive migration recreates the managed source and derived views in the activation transaction. It retains the existing replacement path for append-only changes. The operator guide also calls for verifying a backup before applying a destructive change.

This carries #2834 onto main and includes the retained-view fixture correction.

Verification

  • The optional-field regression failed at the expected source-view step against published v0.52.0 and passed with the planner change.
  • The 47 package planner tests and 77 PostgreSQL package tests passed on the same BReg product tree.
  • The drop uses RESTRICT to refuse external dependencies. The existing migration transaction covers the drop and recreation, and the change adds no access grants.

Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
@jeremi jeremi added this to the v0.53.0 milestone Dec 4, 2026
@jeremi jeremi added the ci:full Run the heavy integration tier on this pull request label Dec 4, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:full Run the heavy integration tier on this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant