Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 0810E9FB29A for ; Tue, 17 Apr 2007 08:40:03 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 44563-03 for ; Tue, 17 Apr 2007 08:39:52 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by postgresql.org (Postfix) with ESMTP id 29FB99FB1DD for ; Tue, 17 Apr 2007 08:39:57 -0300 (ADT) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Hdm2G-0002mx-Ga for pgsql-admin@postgresql.org; Tue, 17 Apr 2007 13:39:48 +0200 Received: from pirus.securax.be ([213.16.46.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 17 Apr 2007 13:39:48 +0200 Received: from milen by pirus.securax.be with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 17 Apr 2007 13:39:48 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-admin@postgresql.org From: "Milen A. Radev" Subject: Re: Checking a size of a given database Date: Tue, 17 Apr 2007 14:39:32 +0300 Lines: 28 Message-ID: References: <4624A530.40108@rokcorp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: pirus.securax.be User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) In-Reply-To: <4624A530.40108@rokcorp.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/150 X-Sequence-Number: 25214 Chuck Amadi написа: > I have been given a task to try a proof of concept of migrating are > active databases from PostgreSQL 8.0.1 to 8.2.3 > > I will install and configPostgreSQL on my local w/s and replicate the > database users etc etc. > > I have had a look inside /var/lib/pgsql/data/base and there are > numerous files (db's) which I believe is where I can check data base size. > > 1 108012 114465 122407 1261267 1261963 17229 17233 17234 17235 > 174066 19247 205009 21272 2793694 2794334 333245 333375 > > I am aware that Postgresql creates directories to keep each database in. > These directories aren't names,they are kept as the *'OID's *of each > database (oid's are*"object identifiers"*). > > Previously I just run pg_dump and thus run ls -lh on the db dump. Anyway > of checking a size of a given database I have tried > the sql using select pg_database_size ('dbaname'); but no joy. What does it mean "but no joy"? What was the error message? -- Milen A. Radev