Re: [PATCHES] Dbsize backend integration

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: Dawid Kuroczko <qnex42(at)gmail(dot)com>
Cc: Dave Page <dpage(at)vale-housing(dot)co(dot)uk>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCHES] Dbsize backend integration
Date: 2005-06-30 21:27:08
Message-ID: 42C463AC.2060603@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Dawid Kuroczko wrote:
> On 6/30/05, Dave Page <dpage(at)vale-housing(dot)co(dot)uk> wrote:
>
>>>-----Original Message-----
>>>From: Bruce Momjian [mailto:pgman(at)candle(dot)pha(dot)pa(dot)us]
>>>Sent: 29 June 2005 12:46
>>>To: Dave Page
>>>Cc: PostgreSQL-patches; PostgreSQL-development
>>>Subject: Re: [PATCHES] Dbsize backend integration
>>>
>>>I have a new idea --- pg_storage_size().
>>
>>I'm not against that one, but I think Tom's point is vaild. I cannot
>>think of anything better at the moment though (maybe pg_component_size,
>>but that's equally random) :-(
>>
>>Anyone else? Please? Someone? Anyone? :-)

pg_df(text,text)

where the $1 would be the relation name and $2 would
be the type of output (human readable, bytes etc...)

J

>
>
> pg_diskspace_size()
> pg_diskusage_size()
> pg_media_used_size()
> pg_allocated_size()
> pg_diskspace_used()
>
> Regards,
> Dawid
>
> PS: Yep, they aren't good...
>
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend

--
Your PostgreSQL solutions company - Command Prompt, Inc. 1.800.492.2240
PostgreSQL Replication, Consulting, Custom Programming, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: plPHP, plPerlNG - http://www.commandprompt.com/

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2005-06-30 21:28:11 Re: Occupied port warning
Previous Message Dawid Kuroczko 2005-06-30 21:21:07 Re: [PATCHES] Dbsize backend integration

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2005-06-30 21:49:55 Re: Constraint Exclusion (Partitioning) - Initial Review
Previous Message Dawid Kuroczko 2005-06-30 21:21:07 Re: [PATCHES] Dbsize backend integration