Basics of vacuum Postgres maintains multi version consistency by keeping old versions of changes tuples instead of actually deleting them. Eventually, keeping all of those out of date versions becomes big burden in terms of storage and performance. Eventually, you end up with bloated tableland indexes. If not felt with, eventually they would fill up tour disks but they would probably make the database unusable before then so we have a handy process to clean it all up. That is Vacuum. Postgres Vacuum goes through your tables and indexes an cleans out had tuples – that is tuples that can no longer be needed by a transaction.
Find the size of a table in Postgres
You often need to know the size of a table in postgres and there is no particularly easy way to get that information directly from the psql client. Fortunately, all of the information is in there and is available through nice simple functions. All you have to do is pull it together and a stock …