Re:Oracle vs. PostgreSQL – A Comment
by 978e4721a on Saturday May 30, 2020 @11:37AM
(#23361862)
Is vacuumin postgres still basically means that you need downtime?
[ Parent
| on HN ]
Vacuuming is online, with some performance hit while it's underway.
Re:Oracle vs. PostgreSQL – A Comment
by tankenmate on Saturday May 30, 2020 @12:11PM
(#23362114)
The latest release has multi-threaded vacuuming so it goes much quicker these days.
Aside of auto vacuuming, there is also VACUUM FULL [1] which does an exclusive lock on the table.
If you look for an alternative option for reorganizing tables in online mode, try the pg_repack extension [2].
[1] https://www.postgresql.org/docs/current/sql-vacuum.html [2] https://reorg.github.io/pg_repack/