Re: [ADMIN] Checking a size of a given database

2007-04-22 Thread Robert Treat
On Tuesday 17 April 2007 07:39, Milen A. Radev wrote: > 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 et

Re: [ADMIN] Checking a size of a given database

2007-04-17 Thread Jeff Frost
On Tue, 17 Apr 2007, Joshua D. Drake wrote: adey wrote: I found the following script useful; for calculating database size:- select pg_database_size? http://www.postgresql.org/docs/8.2/static/functions-admin.html That works great for 8.1+ but I believe the OP wants to do it with 8.0.1. If

Re: [ADMIN] Checking a size of a given database

2007-04-17 Thread Joshua D. Drake
adey wrote: I found the following script useful; for calculating database size:- select pg_database_size? http://www.postgresql.org/docs/8.2/static/functions-admin.html -- Query returns size of a database calculated from the no. 8k pages allocated to tables SELECT sum( relpages*8/1024 )

Re: [ADMIN] Checking a size of a given database

2007-04-17 Thread adey
I found the following script useful; for calculating database size:- -- Query returns size of a database calculated from the no. 8k pages allocated to tables SELECT sum( relpages*8/1024 ) as MB FROM pg_class WHERE -- relname != '' -- relname = 'tablename' relnamespace = '2200' On 4/17/07, Chuck

Re: [ADMIN] Checking a size of a given database

2007-04-17 Thread Milen A. Radev
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