Re: Rather large Postgres directory

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: william pink <will(dot)pink(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Rather large Postgres directory
Date: 2009-04-29 15:59:20
Message-ID: 1241020760.25579.86.camel@jd-laptop.pragmaticzealot.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Wed, 2009-04-29 at 13:36 +0100, william pink wrote:
> Hi,
>
> Unfortuneatly the partition that has the Postgres DB has filled up
> beause of files in the Postgres directory. this partition is 85GB
>
> I tried using Table space to point it at a new partition so I did
>
> exampledb=# CREATE TABLESPACE fastspace LOCATION
> '/var/example/postgres';
>
> which didn't work so I did
>
> example=# SET default_tablespace = fastspace;
>
> but that still didn't work

You have to move the relations to the table space with alter table or
alter index etc...

>
> I also tried VACUUM FULL; last night but this hasn't freed up any
> space, the offending files are
> under /var/databases/8.1/main/base/2832253#
>
> and the files inside the directory look like
>
> 2833195 2836410 2912054 2937747 3463991
> 2832506

At this point you may be better off just doing a backup and restore and
then figure out why your maintenance routines are failing.

Joshua D. Drake

--
PostgreSQL - XMPP: jdrake(at)jabber(dot)postgresql(dot)org
Consulting, Development, Support, Training
503-667-4564 - http://www.commandprompt.com/
The PostgreSQL Company, serving since 1997

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Michael Monnerie 2009-04-29 20:24:51 Re: CLUSTER not in multi-command string?
Previous Message ml@bortal.de 2009-04-29 15:28:20 Copy source and header files... ./config.sh: line 137: stem.c: No such file or directory