|
|
|
|
|
by jacobkg
3032 days ago
|
|
This is potentially BIG news. At my last company Postgres bloat was a gigantic problem. We did a lot of data updates and sometimes customer databases (we sharded by schema) would be bloated by as much as 300%. This really hurts when some customers are 50+ GB. Not only does bloat take up more space but it slows down queries. We would occasionally resort to taking the customer offline for scheduled maintenance to do a pg_dump/pg_restore to get their DB back in shape. I'm very curious to hear when this might become available for production use cases. EDIT: Article states this has been proposed for Postgres 12 |
|
For indexes, using concurrent reindex to create new indexes and dropping the old can make a difference.
Yeah, it would be nice if more of this were automated and it's good that there's work being done. There are some options available in existing that can ameliorate bloat.