Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] Dbsize backend integration

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>
Cc: Dave Page <dpage(at)vale-housing(dot)co(dot)uk>,Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Dawid Kuroczko <qnex42(at)gmail(dot)com>,Andreas Pflug <pgadmin(at)pse-consulting(dot)de>,PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>,PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [HACKERS] Dbsize backend integration
Date: 2005-07-04 17:25:41
Message-ID: 200507041725.j64HPfs24776@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patches
Robert Treat wrote:
> Actually I'd agree with Tom, pg_dbfile_size is ugly, and suggest to me I could 
> use a filename as an argument.  ISTM that if we think that functions like 
> pg_database_size and pg_tablespace_size all make sense, the natural extension 
> would be functions called pg_index_size to tell us the size of an index, 
> pg_table_size to tell us the size of a table (table+toast) without it's 
> indexes, and some form of pg_table_plus_indexes_size for a table and its 
> indexes for those that feel we need both.  I'm not sold we need a function 
> that can return either an index or table size, but if so something like 
> pg_object_size seems ambigious enough to work, and is future proof enough to 
> handle things like materialized views when and if they arise. 

You are into the cycle we were in.  We discussed pg_object size (too
vague) and pg_index_size (needs pg_toast_size too, and maybe toast
indexes; too many functions).

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

In response to

Responses

pgsql-hackers by date

Next:From: Dave PageDate: 2005-07-04 18:54:26
Subject: Re: [HACKERS] Dbsize backend integration
Previous:From: Robert TreatDate: 2005-07-04 17:21:17
Subject: Re: [HACKERS] Dbsize backend integration

pgsql-patches by date

Next:From: Greg Sabino MullaneDate: 2005-07-04 18:00:53
Subject: Column-level triggers
Previous:From: Robert TreatDate: 2005-07-04 17:21:17
Subject: Re: [HACKERS] Dbsize backend integration

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group