by hestefisk · 8y ago · 0 comments
I've read the article before and I do agree, Postgres wasn't really the tool for what they're doing.
I'm not convinced. The one feature I really need a database to have is to guarantee that whatever data I write to it, I will be able to read back unaltered.
I'm a heavy Postgres user since 2001 and I have never seen table corruption, even in the face of defective hardware. The only time something remotely comparable has happened was index corruption on a replica due to a bug in 9.2.0 which was very quickly fixed and as it was just a corrupted index, very easily restored (REINDEX).
If a database I trust with production data was corrupting tables, I would move off that system in a heartbeat (which is incidentally why I stopped using MySQL back then)
Or don't. You know that combination is tempting fate.
I love postgres. It's so great. The very best thing I can say about software is you have to tempt fate to get bitten by a bug.
don't do that if you value your uptime at all. Long-running transactions are the bane of any Postgres setup, no matter the XID overflow.
A few weeks ago, one slipped through my monitoring and a cache table we often sequence scan which normally had 10k rows in it had 28M dead rows that could never be removed due to that one transaction.
That sequence scan suddenly became a lot more expensive.
See http://thebuild.com/presentations/uber-perconalive-2017.pdf
Still. I have had MySQL corrupt tables with way less load and data (in the less than 10GB size range)
The worse part was the corruption was propagated into replica, which brought up much more serious issue with Postgres's replication model. So the only solution was to install the latest good backup.