Received: from anchor-post-31.mail.demon.net (anchor-post-31.mail.demon.net [194.217.242.89]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f8AL3e711804 for ; Mon, 10 Sep 2001 17:03:40 -0400 (EDT) (envelope-from olly@lfix.co.uk) Received: from lfix.demon.co.uk ([158.152.59.127] helo=linda.lfix.co.uk) by anchor-post-31.mail.demon.net with esmtp (Exim 2.12 #1) id 15gYDR-0004by-0V; Mon, 10 Sep 2001 22:03:37 +0100 Received: from lfix.co.uk (olly@localhost [127.0.0.1]) by localhost (8.12.0.Beta19/8.12.0.Beta19/Debian 8.12.0.Beta19) with ESMTP id f8AL3Y8s005886; Mon, 10 Sep 2001 22:03:36 +0100 Message-Id: <200109102103.f8AL3Y8s005886@linda.lfix.co.uk> X-Mailer: exmh version 2.3.1 01/18/2001 (debian 2.3.1-1) with nmh-1.0.4+dev X-URL: http://www.lfix.co.uk/oliver X-face: "xUFVDj+ZJtL_IbURmI}!~xAyPC"Mrk=MkAm&tPQnNq(FWxv49R}\>0oI8VM?O2VY+N7@F- KMLl*!h}B)u@TW|B}6 cc: pgsql-admin@postgresql.org Subject: Re: Can't discover database size In-reply-to: Message from Leandro Rodrigo Saad Cruz of Mon, 10 Sep 2001 17:06:34 -0300. <3B9D1D4A.F05E4DA0@ibnetwork.com.br> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 10 Sep 2001 22:03:34 +0100 From: "Oliver Elphick" X-Archive-Number: 200109/49 X-Sequence-Number: 2149 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