pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Can't discover database size
2+ messages / 2 participants
[nested] [flat]

* Can't discover database size
@ 2001-09-10 20:06 Leandro Rodrigo Saad Cruz <leandro@ibnetwork.com.br>
  2001-09-10 21:03 ` Re: Can't discover database size Oliver Elphick <olly@lfix.co.uk>
  0 siblings, 1 reply; 2+ messages in thread

From: Leandro Rodrigo Saad Cruz @ 2001-09-10 20:06 UTC (permalink / raw)
  To: pgsql-admin

Hi all.
This is a PITA and I can find the answer !
how can I discover the size of a single database inside data/
???

-- 
Leandro Rodrigo Saad Cruz
IT - Inter Business Tecnologia e Servicos (IB)

Attachments:

leandro.vcf (text/x-vcard, 186B) download begin:vcard n:Saad Cruz;Leandro x-mozilla-html:FALSE org:Inter Business;IT adr:;;;;;; version:2.1 email;internet:leandro@ibnetwork.com.br x-mozilla-cpt:;0 fn:Leandro Saad Cruz end:vcard
^ permalink raw reply [nested|flat] 2+ messages in thread

* Re: Can't discover database size
  2001-09-10 20:06 Can't discover database size Leandro Rodrigo Saad Cruz <leandro@ibnetwork.com.br>
@ 2001-09-10 21:03 ` Oliver Elphick <olly@lfix.co.uk>
  0 siblings, 0 replies; 2+ messages in thread

From: Oliver Elphick @ 2001-09-10 21:03 UTC (permalink / raw)
  To: Leandro Rodrigo Saad Cruz <leandro@ibnetwork.com.br>; +Cc: pgsql-admin

Leandro Rodrigo Saad Cruz wrote:
  >how can I discover the size of a single database inside data/

Assuming that by "size" you mean disk blocks:

template1=# select oid from pg_database where datname = 'junk';
   oid    
----------
 12585534
(1 row)

template1=# \q
olly@linda:.../debian$ sudo du -s $PGDATA/base/12585534
Password:
1831	/usr1/postgres/data/base/12585534


-- 
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight                              http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47  6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
                 ========================================
     "Draw near to God and he will draw near to you.  
      Cleanse your hands, you sinners; and purify your  
      hearts, you double minded."       James 4:8 





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


end of thread, other threads:[~2001-09-10 21:03 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-09-10 20:06 Can't discover database size Leandro Rodrigo Saad Cruz <leandro@ibnetwork.com.br>
2001-09-10 21:03 ` Oliver Elphick <olly@lfix.co.uk>

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