Re: [PATCHES] Dbsize backend integration - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [PATCHES] Dbsize backend integration
Date
Msg-id 200506302216.j5UMGbK01815@candle.pha.pa.us
Whole thread Raw
In response to Re: [PATCHES] Dbsize backend integration  ("Dave Page" <dpage@vale-housing.co.uk>)
List pgsql-hackers
Dave Page wrote:
> > That would do just the
> > toast/index/heap, and pg_relation_size() gets a total of them all, and
> > only works on heap, no index or toast.
>
> The totalling version (whatever it ends up being called) should
> definitely work on toast tables, as it is a legitimate use case to want
> to see the size of such a table and it's indexes, independent of the
> owner table. There is no need for it to work on an index though,
> however, it will return the right answer if it is used that way, so I
> think that trying to prevent it will be unecessary code that simply
> slows down the majority of invocations of the function for no benefit.

Agreed.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-hackers by date:

Previous
From: Greg Stark
Date:
Subject: Re: Backend working directories and absolute file paths
Next
From: Tom Lane
Date:
Subject: Re: Backend working directories and absolute file paths