I'm running version 7.1.2. I was able to drop several tables. That cleared
up some disk space, but for some reason now, the database won't restart.
How can you determine where the problem is when you're running
/etc/rc.d/init.d/postgresql restart? Any ideas on that would be
appreciated.
I've got database dumps so I can always start over.
Here's a listing of /var/lib/pgsql/data:
.:
total 1494316
-rw------- 1 postgres postgres 4 Jun 21 2001 PG_VERSION
drwx------ 6 postgres postgres 4096 Sep 17 2003 base
drwx------ 2 postgres postgres 4096 Oct 27 13:40 global
-rw-r--r-- 1 root root 7640 Jun 29 2001 h
-rw------- 1 postgres postgres 9070 Mar 2 10:56 pg_hba.conf
-rw------- 1 postgres postgres 1118 Jun 21 2001 pg_ident.conf
-rw------- 1 postgres postgres 1528627890 Apr 7 12:32 pg_log
drwx------ 2 postgres postgres 4096 Apr 7 12:32 pg_xlog
-rw------- 1 postgres postgres 3137 Jun 21 2001 postgresql.conf
-rw------- 1 postgres postgres 52 Apr 7 12:32 postmaster.opts
As far as log files to delete, here are some I thought might be safe to
delete under
./base:
total 20
drwx------ 2 postgres postgres 4096 Jul 13 2001 1
drwx------ 2 postgres postgres 8192 Apr 7 12:11 185174
drwx------ 2 postgres postgres 4096 Jun 21 2001 18719
drwx------ 2 postgres postgres 4096 Apr 7 12:11 213304
./base/1:
total 1556
-rw------- 1 postgres postgres 0 Jun 21 2001 1215
-rw------- 1 postgres postgres 0 Jun 21 2001 1216
-rw------- 1 postgres postgres 8192 Jun 21 2001 1219
-rw------- 1 postgres postgres 16384 Jul 16 2001 1247
-rw------- 1 postgres postgres 73728 Jul 13 2001 1249
-rw------- 1 postgres postgres 229376 Jun 21 2001 1255
-rw------- 1 postgres postgres 16384 Jul 16 2001 1259
-rw------- 1 postgres postgres 0 Jun 21 2001 16567
-rw------- 1 postgres postgres 8192 Jun 21 2001 16579
-rw------- 1 postgres postgres 16384 Jun 21 2001 16600
-rw------- 1 postgres postgres 73728 Jun 21 2001 16617
-rw------- 1 postgres postgres 8192 Jun 21 2001 16642
-rw------- 1 postgres postgres 8192 Jun 21 2001 16653
-rw------- 1 postgres postgres 16384 Jun 21 2001 16685
-rw------- 1 postgres postgres 8192 Jun 21 2001 16867
-rw------- 1 postgres postgres 8192 Jun 21 2001 16934
-rw------- 1 postgres postgres 0 Jun 21 2001 16948
-rw------- 1 postgres postgres 8192 Jun 21 2001 16960
-rw------- 1 postgres postgres 0 Jun 21 2001 17033
-rw------- 1 postgres postgres 0 Jun 21 2001 17045
-rw------- 1 postgres postgres 8192 Jun 21 2001 17058
.
.
.
.
I've got a couple of directories that I suspect have stale files. One of
them:
./base/185174 contains what appears to be current information.
Thanks
Tom Bakken
Information Resource Manager
Texas USDA, Rural Development
-----Original Message-----
From: pgsql-admin-***@postgresql.org
[mailto:pgsql-admin-***@postgresql.org] On Behalf Of Peter Eisentraut
Sent: Wednesday, April 07, 2004 12:20 PM
To: Tom Bakken; pgsql-***@postgresql.org
Subject: Re: [ADMIN] Out of space
Post by Tom BakkenI've been running a postgres for 2 or 3 years without a problem.
This morning my disk space for the database filled up. I need to
know what transaction/log files I can truncate or delete without
compromising the system. These files are located under
/var/lib/pgsql/data/
The answer is normally "none" unless you have experienced crashes or
other problems that might have left stale files lying around. But you
say have had no problem ...
If you have any suspicion in that direction, please show us the exact
files you're thinking about. A note about which PG version you are
running would also help.
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?
http://www.postgresql.org/docs/faqs/FAQ.html