On Thu, Mar 5, 2015 at 2:02 AM, Yelai, Ramkumar IN BLR STS <ramkumar.yelai@xxxxxxxxxxx> wrote: > Hi All, > > I am using the following code to know how much disk space could be saved > after deleting certain tables (as a parameter to this function ) > > CREATE OR REPLACE FUNCTION Get_Tables_Recovery_Size( IN tableNames text[] ) Why not just use the built-in pg_total_relation_size? Josh -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general