We have table "table1" containing 100000 rows, which includes blob data. The total table size is 3.5 GB.
When tried to extract all records into CSV/.txt file by using copy
or \o
commands the generated output file is 100 GB in size.
ex:
select pg_size_pretty(pg_total_relation_size('table1));
3.5 GB
Please let us know how this actually generated this much huge size and how will get know the actual table size?