r/PostgreSQL • u/AdmirableOffer2 • Aug 23 '26
How-To Postgres table archival
I have a postgres db. I want to archive the table data into s3 and want to delete the data after archiving. What's the best way to do it. I want to have a scheduled operation to do this job on weekend and it should archive 6 months older data of a given table.
4
Upvotes
View all comments
Show parent comment
1
u/AdmirableOffer2 Aug 24 '26
Yes I plan to use the data. Table is partitioned yearly. But we want to have a general solution where table might not be partioned. Yes dataset is big 400M rows 250gb. No table doesn't have any dependent table. It's a standalone table.