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                                [EMAIL PROTECTED]
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 



---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/users-lounge/docs/faq.html

Reply via email to