Re: reltoastidxid altenates in postgresql 9.4

From: Josh Kupershmidt <schmiddy(at)gmail(dot)com>
To: "Yelai, Ramkumar IN BLR STS" <ramkumar(dot)yelai(at)siemens(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: reltoastidxid altenates in postgresql 9.4
Date: 2015-03-10 20:50:50
Message-ID: CAK3UJRH4Z+JBLSB6cwyjoqxd=emWFbQZbp0jy5VyJkWBSr=X_w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Mar 5, 2015 at 2:02 AM, Yelai, Ramkumar IN BLR STS
<ramkumar(dot)yelai(at)siemens(dot)com> 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Andrew Gierth 2015-03-11 00:49:56 Re: pg_dump search path issue
Previous Message Pavel Stehule 2015-03-10 20:02:42 Re: How to read refcursor column's using string column name?