pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Table Sizes
5+ messages / 4 participants
[nested] [flat]

* Table Sizes
@ 2003-03-09 20:51 Ogden Nefix <onefix@waste.org>
  2003-03-10 06:37 ` Re: Table Sizes A.Bhuvaneswaran <bhuvansql@myrealbox.com>
  2003-03-10 09:45 ` Re: Table Sizes Rajesh Kumar Mallah <mallah@trade-india.com>
  0 siblings, 2 replies; 5+ messages in thread

From: Ogden Nefix @ 2003-03-09 20:51 UTC (permalink / raw)
  To: pgsql-admin

Hi,

Is it possible to find out the size of certain tables in PostgreSQL? If 
so, how?

Thank you

Ogden





^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Table Sizes
  2003-03-09 20:51 Table Sizes Ogden Nefix <onefix@waste.org>
@ 2003-03-10 06:37 ` A.Bhuvaneswaran <bhuvansql@myrealbox.com>
  1 sibling, 0 replies; 5+ messages in thread

From: A.Bhuvaneswaran @ 2003-03-10 06:37 UTC (permalink / raw)
  To: pgsql-admin

> Is it possible to find out the size of certain tables in PostgreSQL? If 
> so, how?

Try contrib/dbsize.

regards,
bhuvaneswaran





^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Table Sizes
  2003-03-09 20:51 Table Sizes Ogden Nefix <onefix@waste.org>
@ 2003-03-10 09:45 ` Rajesh Kumar Mallah <mallah@trade-india.com>
  2003-03-14 04:37   ` Re: Table Sizes Rajesh Kumar Mallah <mallah@trade-india.com>
  2003-03-14 20:21   ` Re: Table Sizes Ross J. Reedstrom <reedstrm@rice.edu>
  1 sibling, 2 replies; 5+ messages in thread

From: Rajesh Kumar Mallah @ 2003-03-10 09:45 UTC (permalink / raw)
  To: Ogden Nefix <onefix@waste.org>; pgsql-admin


use contrib/dbsize 

1. select relation_size('schemaname.tablename');
2. select database_size('databasename');


function 1 does not works with tablename in miXed CaSe.


regds
mallah.

On Monday 10 Mar 2003 2:21 am, Ogden Nefix wrote:
> Hi,
> 
> Is it possible to find out the size of certain tables in PostgreSQL? If 
> so, how?
> 
> Thank you
> 
> Ogden
> 
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
> 
> 

-- 

Regds
Mallah

----------------------------------------
Rajesh Kumar Mallah,
Project Manager (Development)
Infocom Network Limited, New Delhi
phone: +91(11)6152172 (221) (L) ,9811255597 (M)

Visit http://www.trade-india.com ,
India's Leading B2B eMarketplace.



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Table Sizes
  2003-03-09 20:51 Table Sizes Ogden Nefix <onefix@waste.org>
  2003-03-10 09:45 ` Re: Table Sizes Rajesh Kumar Mallah <mallah@trade-india.com>
@ 2003-03-14 04:37   ` Rajesh Kumar Mallah <mallah@trade-india.com>
  1 sibling, 0 replies; 5+ messages in thread

From: Rajesh Kumar Mallah @ 2003-03-14 04:37 UTC (permalink / raw)
  To: Jodi Kanter <jkanter@virginia.edu>; +Cc: pgsql-admin


You need to install the contrib/dbsize 
package.

Yes it will work from psql. Not sure though
if this contrib package is bundled with 
pgsql 7.2.3 , with 7.3.2 yes.


regds
mallah.


On Thursday 13 Mar 2003 10:39 pm, you wrote:
> I assume these command need to be run within psql? They don't work for me.
> Could it be specific to a newer version? We are using 7.2.3
> Thanks
> Jodi
> 
> ----- Original Message -----
> From: "Rajesh Kumar Mallah" <mallah@trade-india.com>
> To: "Ogden Nefix" <onefix@waste.org>; <pgsql-admin@postgresql.org>
> Sent: Monday, March 10, 2003 4:45 AM
> Subject: Re: [ADMIN] Table Sizes
> 
> 
> >
> > use contrib/dbsize
> >
> > 1. select relation_size('schemaname.tablename');
> > 2. select database_size('databasename');
> >
> >
> > function 1 does not works with tablename in miXed CaSe.
> >
> >
> > regds
> > mallah.
> >
> > On Monday 10 Mar 2003 2:21 am, Ogden Nefix wrote:
> > > Hi,
> > >
> > > Is it possible to find out the size of certain tables in PostgreSQL? If
> > > so, how?
> > >
> > > Thank you
> > >
> > > Ogden
> > >
> > >
> > >
> > > ---------------------------(end of broadcast)---------------------------
> > > TIP 4: Don't 'kill -9' the postmaster
> > >
> > >
> >
> > --
> >
> > Regds
> > Mallah
> >
> > ----------------------------------------
> > Rajesh Kumar Mallah,
> > Project Manager (Development)
> > Infocom Network Limited, New Delhi
> > phone: +91(11)6152172 (221) (L) ,9811255597 (M)
> >
> > Visit http://www.trade-india.com ,
> > India's Leading B2B eMarketplace.
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 6: Have you searched our list archives?
> >
> > http://archives.postgresql.org
> >
> 
> 
> 

-- 
Rajesh Kumar Mallah,
Project Manager (Development)
Infocom Network Limited, New Delhi
phone: +91(11)6152172 (221) (L) ,9811255597 (M)

Visit http://www.trade-india.com ,
India's Leading B2B eMarketplace.



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Table Sizes
  2003-03-09 20:51 Table Sizes Ogden Nefix <onefix@waste.org>
  2003-03-10 09:45 ` Re: Table Sizes Rajesh Kumar Mallah <mallah@trade-india.com>
@ 2003-03-14 20:21   ` Ross J. Reedstrom <reedstrm@rice.edu>
  1 sibling, 0 replies; 5+ messages in thread

From: Ross J. Reedstrom @ 2003-03-14 20:21 UTC (permalink / raw)
  To: pgsql-admin

On Mon, Mar 10, 2003 at 03:15:18PM +0530, Rajesh Kumar Mallah wrote:
> 
> use contrib/dbsize 
> 
> 1. select relation_size('schemaname.tablename');
> 2. select database_size('databasename');
> 
> 
> function 1 does not works with tablename in miXed CaSe.

Sure it does, you just need to put the quotes in the right place:

test=# select relation_size('public.foo');
 relation_size 
---------------
          8192
(1 row)

test=# select relation_size('public."FooTwo"');
 relation_size 
---------------
          8192
(1 row)

Ross



^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2003-03-14 20:21 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-03-09 20:51 Table Sizes Ogden Nefix <onefix@waste.org>
2003-03-10 06:37 ` A.Bhuvaneswaran <bhuvansql@myrealbox.com>
2003-03-10 09:45 ` Rajesh Kumar Mallah <mallah@trade-india.com>
2003-03-14 04:37   ` Rajesh Kumar Mallah <mallah@trade-india.com>
2003-03-14 20:21   ` Ross J. Reedstrom <reedstrm@rice.edu>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox