zlacker

[return to "The part of Postgres we hate the most: Multi-version concurrency control"]
1. h1fra+DD[view] [source] 2023-04-26 20:20:53
>>andren+(OP)
Once you figured out all the point in this article, it's a matter of fine tuning, can take some times but eventually it will works. The only thing I still struggle with is the Table Bloat.

On managed Postgres (i.e: gcp, aws) you pay for the disk, but when you can't run a VACUUM FULL because it locks the table, you end up with a lot of allocated storage for nothing and you can't shrink the disk size (at least on gcp). Storage is cheap but still feels like a waste.

◧◩
2. fovc+uI[view] [source] 2023-04-26 20:43:16
>>h1fra+DD
https://reorg.github.io/pg_repack/

Dead easy to run and no long-held locks

◧◩◪
3. jagged+vc1[view] [source] 2023-04-27 00:03:32
>>fovc+uI
Absolutely critical once you get above a certain table size.
[go to top]