Hey everyone! We have a specific use case where we regularly fetch data from a source, but we only need to keep the last X days. We tried deleting older rows and then running
pg_repack
pg_repack
, but instead of reducing storage, it actually doubled.
Our goal is to free up space to lower storage costs, and we also can’t run a VACUUM FULL because we want to avoid service disruption.
Could someone explain the best way to achieve this? Ideally, we’d like to run
pg_repack
pg_repack
daily or weekly, but we want to avoid storage usage doubling each time.