Schema migration safety
The idea
Problem
Hypothesis
A credible first version
Evidence
Hand-collected links the ratings are based on, each with the curator's note.
- Zero-downtime schema migrations in Postgres using views
Note: Expand/contract migrations via views (Reshape).
Feature requestHacker Newsattached by curatormanualnews.ycombinator.com181 eng.Jun 15, 2021 - Django zero-downtime migrations for Postgres that respect database locks
Note: ORM migrations take unsafe locks by default.
Operational complaintHacker Newsattached by curatormanualnews.ycombinator.com122 eng.Oct 22, 2018 - Show HN: pglockanalyze - See the locks your Postgres migrations will acquire
Note: Tools to predict migration locks keep appearing.
Feature requestHacker Newsattached by curatormanualnews.ycombinator.com8 eng.May 30, 2025
Existing solutions
How well each covers the problem has not been assessed yet; the ratings' differentiation reason says what is known.
Signals attached by the rules
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)
- Comment on “Does anyone run Postgres without PgBouncer?”
I do. I run Postgres in the same server as the app in some apps, with no pgbouncer, no regret at all after 10+ years.
165 eng.Aug 17, 2026 - Comment on “PostgreSQL Migrator 1.0: Moving Fast from Oracle and MySQL to PostgreSQL”
mysql accepts utf-8 in latin-1 varchar, bad dates, etc. mysql is actually a fractal of bad design for data integrity. For SQL syntax, using bare strings as identifier may be a nightmare: SELECT 1 'int' is a column named int.
6 eng.Sep 15, 2026 - Comment on “How to Extract Data from InnoDB, MyISAM, and MyRocks Files?”
What is your plan B when you find out the MySQL/MariaDB backup is missing, but the database crashes with data corruption? Or maybe someone ran a DELETE without a WHERE clause, but the binary log was already rotated (or doesn't have the pre-image due to "minimal")?
0 eng.Oct 28, 2026 - Comment on “Fakecloud: Local AWS cloud emulator for integration tests”
Your first paragraph "just use a MySQL container" and the second "test against what prod runs on", seem to contradict? If not, you are asking for eventual outage in Prod when some slightly different AWS thing bites you. Exactly...
0 eng.Sep 28, 2026 - Comment on “What Sun got wrong”
- UltraSPARC was more than a decade too late to make up for SPARC falling way behind x86 64. Sun needed to give up on SPARC, but again, vendor lock-in sounds sweet but turns out to be poison. UltraSPARC came out in 1995, and Athlon 64 in 2003. I'm confused on how it could be late? - The MySQL…
0 eng.Sep 21, 2026 - Comment on “What Sun got wrong”
I've written several times here about all the mistakes that Sun made during the 00s that doomed it. Among the many mistakes it made are: - Cancelling -if briefly- Solaris on x86 in 2002. This killed Solaris in the minds of many who didn't want to be locked into Sun for SPARC. - Failing to make a…
0 eng.Sep 21, 2026 - Comment on “Containers are great. Kubernetes is great. But [DBA crying]”
Kubernetes isn’t the problem. Adding unnecessary layers is. Good database architecture should reduce complexity, not introduce it. Fewer layers mean fewer dependencies, fewer failure points, and less operational overhead. I’m a DBA, and I’m saying you don’t need Kubernetes to automate PostgreSQL.…
0 eng.Aug 28, 2026 - Comment on “Does anyone run Postgres without PgBouncer?”
of course, the vast, vast majority of PostgreSQL users outside of managed cloud hosting are not using pgbouncer. pgbouncer introduces complexities into the database conversation (transaction-level pooling interacting with the prepared statement cache is a long recurring nightmare for us at…
0 eng.Aug 16, 2026 - Comment on “Tracking down the 16-year-old WAL-reset SQLite bug”
"...and then we discovered an unexpected clue . We wanted a way to restore service that didn’t involve rolling back to the last known-good backup (which would lose a lot of data) or repairing the known-corrupted database (which was potentially risky). To do this, we built a transaction logging…
0 eng.Aug 13, 2026 - Comment on “Humans missed 1 in 3 threats approving AI agent commands across 40k game runs”
I joined Oracle in 2012, and I myself complained that the user experience was horrible: get an Oracle DB installed was a nightmare, starting with so many questions. I heard complaints from other users about it requiring, during installation, that an admin password must be set. I myself had…
0 eng.Aug 6, 2026 - Comment on “Massively Parallel Postgres Backups”
What I emphasized in this article (author here) is scaling postgres backups. This works because there's already rock-solid systems built into postgres + surrounding tooling to build from. The broader takeaway is the principle of, "how do I take something that doesn't scale on its own and make it…
0 eng.Aug 3, 2026 - Comment on “Htmx 4.0, the first JavaScript library to release exclusively on the Game Boy”
From an engineering perspective, sqlite and PostgreSQL are equivalent. The difference is only in the deployment/maintenance. And considering the context he stated, zero downtime really doesn't seem like something he's worrying about.
0 eng.Jul 26, 2026 - Comment on “The startup's Postgres survival guide”
I think you need to analyze the disaster scenarios and recovery costs you are trying to balance before you can really evaluate these different options. If you are on reasonable storage, I think it is arguable that the main reason you would have to recover is due to a software failure leading to…
0 eng.Jul 22, 2026 - Comment on “Show HN: Ingestr CDC – open-source CDC replication in Go”
Man I have had a lot of gripes with debezium... the setup alone in a kubernetes cluster with strimzi kafka connect... And dealing with the kafka connect errors and fixing replication slots... ehhh was painful. Does this tool make it any well easier. One problem I expirienced in production systems…
0 eng.Jul 18, 2026
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…
githubgithub.com161 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…
githubgithub.com117 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…
githubgithub.com103 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…
githubgithub.com77 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…
githubgithub.com42 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…
githubgithub.com39 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...
githubgithub.com37 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?
ecosystemsissues.ecosyste.ms31 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…
githubgithub.com28 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…
githubgithub.com26 eng.Feb 6, 2026 - Supavisor: HTTP endpoint for SQL queries
Provide an HTTP endpoint to POST sql query strings (and parameters) and return results.
githubgithub.com18 eng.Aug 11, 2023 - Crunchy Postgres for Kubernetes (PGO): Create secrets in specific namespaceecosystemsissues.ecosyste.ms17 eng.Nov 4, 2021
- 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…
githubgithub.com11 eng.Apr 30, 2026