Skip to content

← Build

Hypothesis, not validated stage: Hypothesis

Schema migration safety

The idea

Problem

DDL on busy Postgres/MySQL tables takes locks that stall production, and ORMs generate unsafe migrations; teams rely on tribal knowledge (lock_timeout, expand/contract) and custom tooling.

Hypothesis

A migration linter + executor that predicts locks, rewrites unsafe DDL into online expand/contract steps and verifies backward compatibility in CI would be adopted widely, especially bundled with managed Postgres/MySQL.

A credible first version

A linter that reads a migration file, predicts the Postgres locks each statement takes and suggests the expand/contract rewrite, run in CI against a shadow database.

Evidence

3 curated

Hand-collected links the ratings are based on, each with the curator's note.

Existing solutions

3

How well each covers the problem has not been assessed yet; the ratings' differentiation reason says what is known.

Signals attached by the rules

30

A signal attaches when it concerns one of the entities below and its kind is one of Operational complaint, Feature request, or its title contains one of: schema migration, zero-downtime migration, lock_timeout, online ddl, migration locks.

Operational complaint (14)
Feature request (16)
  • CloudNativePG: [Feature]: In-place recovery from backup

    Is there an existing issue already for this feature request/idea? - [X] I have searched for an existing issue, and could not find anything. I believe this is a new feature request to be evaluated. What problem is this feature going to solve? Why should it be added? Currently, In CloudNativePG, you can't perform recovery in place on an existing cluster. Recovery is instead a way to bootstrap a new Postgres cluster starting from an available physical backup. While it is amazing to have this capability, the ergonomics are not great, especially if needing to recover a database in an emergency…

    Feature requestGitHub issuesCloudNativePGattached by rule
    161 eng.
    Jul 30, 2024
  • CloudNativePG: [Feature]: managing cnpg in GitOps workflows (FluxCD, ArgoCD ...)

    Is there an existing issue already for this feature request/idea? - [X] I have searched for an existing issue, and could not find anything. I believe this is a new feature request to be evaluated. What problem is this feature going to solve? Why should it be added? In kubernetes cluster manager using gitops tools like FluxCD, I faced a really annoying limiation, especially for restoring db cluster, which is the following: When defining a CNPG cluster resource for a db, we specify the initialization mode for the cluster of the database. There are two options: initdb: This mode creates an empty…

    Feature requestGitHub issuesCloudNativePGattached by rule
    117 eng.
    Oct 9, 2024
  • CloudNativePG: [Feature]: allow cross-namespace Database and Role configuration

    Is there an existing issue already for this feature request/idea? - [x] I have searched for an existing issue, and could not find anything. I believe this is a new feature request to be evaluated. What problem is this feature going to solve? Why should it be added? The new CRD for Database and the upcoming Role CRD use LocalObjectReference for the cluster setting. This makes it awkward to share a Postgres cluster among applications in different namespaces. Describe the solution you'd like It would be nice if a Cluster in another namespace can be referenced in Database and Role objects. This…

    Feature requestGitHub issuesCloudNativePGattached by rule
    103 eng.
    Nov 6, 2024
  • CloudNativePG: [Feature]: VolumeSnapshot retention policy

    Is there an existing issue already for this feature request/idea? - [x] I have searched for an existing issue, and could not find anything. I believe this is a new feature request to be evaluated. What problem is this feature going to solve? Why should it be added? Currently in CNPG when you have volume snapshots enabled the .spec.backup.retentionPolicy is ignored. This leads to having to implement your own retention policy or manually delete older snapshots as they grow unbounded in the cluster over time. Describe the solution you'd like Add functionality to remove snapshots older than what…

    Feature requestGitHub issuesCloudNativePGattached by rule
    77 eng.
    Nov 1, 2024
  • CloudNativePG: [Feature]: Run a script after adding/removing managed roles

    Is there an existing issue already for this feature request/idea? - [x] I have searched for an existing issue, and could not find anything. I believe this is a new feature request to be evaluated. What problem is this feature going to solve? Why should it be added? The declarative syntax is missing a way to declare a script to be run after adding/removing a managed role. In the context of adding a new managed role, I need to be able to GRANT privileges on it. In the context of credential rotation, I want to add a new role, transfer ownership of objects from the old role to the new one, and…

    Feature requestGitHub issuesCloudNativePGattached by rule
    42 eng.
    Mar 12, 2025
  • CloudNativePG: [Feature]: Allow fallback to initdb if backup is missing

    Is there an existing issue already for this feature request/idea? - [x] I have searched for an existing issue, and could not find anything. I believe this is a new feature request to be evaluated. What problem is this feature going to solve? Why should it be added? In some environments a full recovery from a backup is optional - for example in non-production clusters environments. Currently if a bootstrap.recovery is specified but the base backup is not found in the object store (for example s3) the cluster fails to initialize and gets stuck in error state This is technically expected and…

    Feature requestGitHub issuesCloudNativePGattached by rule
    39 eng.
    May 5, 2025
  • Strimzi: [Enhancement] Start using CC self heal features

    Hi, I have been running a kafka cluster with strimzi for a while now. However a few months ago we moved to preemtible vm's in Google cloud. This means that kafka brokers get terminated at least one time a day. If I could enable the self heal in cruise control downtime could be reduced to unnoticeable proportions. However I see you filter that property in the documentation. Why is that? Only other solution I see is building a service that detects broker outage manually and than triggers a rebalance. However this would not be needed if I could just enable this one property...

    Feature requestGitHub issuesStrimziattached by rule
    37 eng.
    Sep 3, 2020
  • Strimzi: [Enhancement] Advertise pod IPs in listener

    I'm using Strimzi on AWS EKS with the VPC CNI which means my pod IPs are routable and accessible from outside of the Kubernetes cluster. Ideally like to be able to configure a listener to advertise the pod IPs so that clients outside of the cluster are able to connect to brokers directly rather than having to go through a nodeport service. I'm struggling to figure out if this is possible with the current overrides available?

    Feature requestGitHub issuesStrimziattached by rule
    31 eng.
    Nov 19, 2020
  • CloudNativePG: [Feature]: Add secret template for credentials secret

    Is there an existing issue already for this feature request/idea? - [X] I have searched for an existing issue, and could not find anything. I believe this is a new feature request to be evaluated. What problem is this feature going to solve? Why should it be added? It's impossible to add specific labels and annotations to the generated basic-auth type secrets containing the credentials and connection information. Describe the solution you'd like Something like spec.secretTemplates.appUserSecret.annotations (also this would introduce the possibility for other (future) secrets be specified…

    Feature requestGitHub issuesCloudNativePGattached by rule
    28 eng.
    Oct 17, 2024
  • CloudNativePG: [Feature]: Automatic PVC Resizing with WAL-Aware Safety

    Is there an existing issue already for this feature request/idea? - [x] I have searched for an existing issue, and could not find anything. I believe this is a new feature request to be evaluated. What problem is this feature going to solve? Why should it be added? ⚠️ For discussion please see the companion discussion: Problem Statement PostgreSQL storage requirements are inherently difficult to predict. Databases grow over time, and running out of disk space causes PostgreSQL crashes, WAL archiving failures, replication breakage, and service outages. Today, CNPG supports manual PVC resizing…

    Feature requestGitHub issuesCloudNativePGattached by rule
    26 eng.
    Feb 6, 2026
  • Supavisor: HTTP endpoint for SQL queries

    Provide an HTTP endpoint to POST sql query strings (and parameters) and return results.

    Feature requestGitHub issuesSupavisorattached by rule
    18 eng.
    Aug 11, 2023
  • Supavisor: Add Open Telemetry support
    Feature requestGitHub issuesSupavisorattached by rule
    16 eng.
    May 17, 2023
  • PgBouncer: Handle plan_cache_mode in session mode (and perhap's transaction mode also)

    Hi, Using PgBouncer (version 1.25.1) with CloudNative-Pg, we have a problem with prepared statements. My colleagues had identified the problem in this blog article. In order to prevent the transaction preparation, yesterday, we tried to implement adding into PGOPTIONS plan cache mode=force custom plan , but we have never seen non-prepared queries on the PostgreSQL instance. Finally, we used a workaround, setting prepareThreshold=0 , that fixed our issue. Today, we are making new tests, and find that the parameter is not configured in the connection after Pgbouncer. Test script: sh pooler…

    Feature requestGitHub issuesPgBouncerattached by rule
    11 eng.
    Apr 30, 2026