Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Using pg_upgrade I recently updated this 100Tb sized DB (from PG12 to PG13) in ~10 min of downtime.

=> select pg_size_pretty(pg_database_size ('**'));

pg_size_pretty

----------------

99 TB

(1 row)

(The re-analyze of tables took a day or so though)



Yeah, my petty 6Tb also went fine with pg_upgrade and practically no downtime. Upgrade slave, promote to master, upgrade master and then promote it back. It's a marvelous piece of technology.

It's really just a handful of core people who did most of the work, crafting it so thoughtfully over the years and it has such a huge impact on the world.

Doing huge part of it before postgresql was as popular as it is today, spending countless hours on making some great design choices and implementing them carefully.

It seems unlikely any of them will read that but I'm so deeply grateful to these people. It allowed so many things to flourish on top thanks to it being open source and free.


Curious what is your storage story? Where DB is actually stored? Some NAS?


It's DAS. Mostly it's in one box of RAIDed 32x5.5Tb drives with a couple of tablespaces/WAL elsewhere. The DB is mostly read-only and not many concurrent users, so that's probably not the most typical case.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: