Skip site navigation (1) Skip section navigation (2)

Re: Checking a size of a given database

From: "Milen A(dot) Radev" <milen(at)radev(dot)net>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: Checking a size of a given database
Date: 2007-04-17 11:39:32
Message-ID: f02blk$lnp$1@sea.gmane.org (view raw or flat)
Thread:
Lists: pgsql-admin
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


In response to

Responses

pgsql-admin by date

Next:From: Matthew O'ConnorDate: 2007-04-17 13:13:09
Subject: Re: Vacuum stops with misleading max_fsm_pages error
Previous:From: Chuck AmadiDate: 2007-04-17 10:45:04
Subject: Checking a size of a given database

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group