pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Shoaib Mir <shoaibmir@gmail.com>
To: Guido Barosio <gbarosio@gmail.com>
Cc: rodrigo.sakai@zanthus.com.br
Cc: pgsql-admin@postgresql.org
Subject: Re: Estimating a table size
Date: Thu, 21 Sep 2006 22:50:14 +0500
Message-ID: <bf54be870609211050q2f78502bya6640a7bdf4bfd1c@mail.gmail.com> (raw)
In-Reply-To: <f7f6b4c70609211041s2c26d8ddr7f698dd26bd9c44b@mail.gmail.com>
References: <001b01c6dda0$723b90d0$4700a8c0@TREEZANTHUS>
	<f7f6b4c70609211041s2c26d8ddr7f698dd26bd9c44b@mail.gmail.com>

http://www.postgresql.org/docs/8.1/static/diskusage.html can help you get
this information.

Thanks,
-- 
Shoaib Mir
EnterpriseDB (www.enterprisedb.com)

On 9/21/06, Guido Barosio <gbarosio@gmail.com> wrote:
>
> there used to be a dbsize project, search for it.
>
> g.-
> On 9/21/06, Rodrigo Sakai <rodrigo.sakai@zanthus.com.br> wrote:
> >
> >
> >
> >
> >   Hello all,
> >
> >
> >
> >   I need a tool or something like it, which can give me the estimated
> size
> > of a table considering all fields, constraints, indexes, etc...
> >
> >
> >
> >   For example:
> >
> >
> >
> >
> >
> >   CREATE TABLE products (
> >
> >      product_id INT8,
> >
> >      product_name VARCHAR(50),
> >
> >      product_vendor VARCHAR(50),
> >
> >      price NUMERIC(10,2),
> >
> >
> >
> >      CONSTRAINT pk_products PRIMARY KEY (product_id),
> >
> >      CONSTRAINT ck_price CHECK (price >= 0)
> >
> > );
> >
> >
> >
> >
> >
> > CREATE INDEX ix_products ON products (product_name);
> >
> >
> >
> >
> >
> >   See that in the example above I have, some fields, some constraints
> and
> > one index. I want to know (estimate) how much fisical space (KB, MB) it
> will
> > consume!
> >
> >
> >
> >
> >
> >   Thanks in advance!
> >
> >
>
>
> --
> Guido Barosio
> -----------------------
> http://www.globant.com
> guido.barosio@globant.com
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings
>

view thread (4+ messages)

Message-ID: <bf54be870609211050q2f78502bya6640a7bdf4bfd1c@mail.gmail.com>
Permalink:  ../bf54be870609211050q2f78502bya6640a7bdf4bfd1c@mail.gmail.com/
Also on:    postgresql.org/message-id/bf54be870609211050q2f78502bya6640a7bdf4bfd1c@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: shoaibmir@gmail.com, gbarosio@gmail.com, rodrigo.sakai@zanthus.com.br
  Subject: Re: Estimating a table size
  In-Reply-To: <bf54be870609211050q2f78502bya6640a7bdf4bfd1c@mail.gmail.com>
  References: <001b01c6dda0$723b90d0$4700a8c0@TREEZANTHUS> <f7f6b4c70609211041s2c26d8ddr7f698dd26bd9c44b@mail.gmail.com> <bf54be870609211050q2f78502bya6640a7bdf4bfd1c@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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