I wrote a script to backup a postgresql using COPY and then delete those records. I have used pg_relation_size before and after delete.
- pg_relation_size
- DELETE
- VACUUM ANALYZE
- pg_relation_size
But both pg_relation_size shows same results. Does this mean VACUUM ANALYZE was not helpful?