Re: postgresql database file names

2006-10-30 Thread Roberto C. Sanchez
On Mon, Oct 30, 2006 at 12:34:36AM -0500, Tony Heal wrote: > For those who care. Here is how you determine the disk space used for each > postgresql db. > Neat. Thanks for the info. Regards, -Roberto -- Roberto C. Sanchez http://people.connexer.com/~roberto http://www.connexer.com -- To UN

RE: postgresql database file names

2006-10-29 Thread Tony Heal
For those who care. Here is how you determine the disk space used for each postgresql db. #!/bin/bash # scan the list of databases and provide the disk space used in human readable form dbs=`psql template1 -tc "select datname from pg_database"|sed s/" "/""/g` for i in $dbs do oid=`psql template

Re: postgresql database file names

2006-10-29 Thread Paul E Condon
On Sun, Oct 29, 2006 at 12:18:54PM -0500, Tony Heal wrote: > OK, how do you determine the disk size of a database. I have a var partition > that is at 90% capacity and growing, and there are some databases I can > remove, but it would be easier if I knew which DB's were taking up what disk > space.

Re: postgresql database file names

2006-10-29 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/29/06 11:18, Tony Heal wrote: > OK, how do you determine the disk size of a database. I have a var partition > that is at 90% capacity and growing, and there are some databases I can > remove, but it would be easier if I knew which DB's were taki

Re: postgresql database file names

2006-10-29 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/29/06 14:07, Steve Kemp wrote: > On Sun, Oct 29, 2006 at 03:00:38PM -0500, Roberto C. Sanchez wrote: > >>> [EMAIL PROTECTED]:~# du --summarize --human-readable /var/lib/mysql/* > >> He is working with PostgreSQL. > > True, but I figured th

Re: postgresql database file names

2006-10-29 Thread Steve Kemp
On Sun, Oct 29, 2006 at 03:00:38PM -0500, Roberto C. Sanchez wrote: > > [EMAIL PROTECTED]:~# du --summarize --human-readable /var/lib/mysql/* > He is working with PostgreSQL. True, but I figured that the ability to determine which files were the biggest was the next remaining issue. (After

Re: postgresql database file names

2006-10-29 Thread Roberto C. Sanchez
On Sun, Oct 29, 2006 at 12:18:54PM -0500, Tony Heal wrote: > OK, how do you determine the disk size of a database. I have a var partition > that is at 90% capacity and growing, and there are some databases I can > remove, but it would be easier if I knew which DB's were taking up what disk > space.

Re: postgresql database file names

2006-10-29 Thread Roberto C. Sanchez
On Sun, Oct 29, 2006 at 05:31:19PM +, Steve Kemp wrote: > On Sun, Oct 29, 2006 at 12:18:54PM -0500, Tony Heal wrote: > > OK, how do you determine the disk size of a database. > > The same way that you'd determine what disk space were used by > any other type of file. > > > but it would be

Re: postgresql database file names

2006-10-29 Thread Steve Kemp
On Sun, Oct 29, 2006 at 12:18:54PM -0500, Tony Heal wrote: > OK, how do you determine the disk size of a database. The same way that you'd determine what disk space were used by any other type of file. > but it would be easier if I knew which DB's were taking up what disk > space. Try this:

RE: postgresql database file names

2006-10-29 Thread Tony Heal
nchez [mailto:[EMAIL PROTECTED] Sent: Sunday, October 29, 2006 10:14 AM To: debian-user@lists.debian.org Subject: Re: postgresql database file names On Sun, Oct 29, 2006 at 09:49:34AM -0500, Tony Heal wrote: > I am trying to determine how to correlate the file system file names to a > database

Re: postgresql database file names

2006-10-29 Thread Roberto C. Sanchez
On Sun, Oct 29, 2006 at 09:49:34AM -0500, Tony Heal wrote: > I am trying to determine how to correlate the file system file names to a > database in /var/lib/postgres/data/base with the database names used in > postgresql > > > > The file system names are: > > > > drwx-- 2 postgres pos