Re: How to free disk space - Mailing list pgsql-general

From Robert Treat
Subject Re: How to free disk space
Date
Msg-id 200810211246.03528.xzilla@users.sourceforge.net
Whole thread Raw
In response to Re: How to free disk space  ("postgres Emanuel CALVO FRANCO" <postgres.arg@gmail.com>)
Responses Re: How to free disk space  ("Scott Marlowe" <scott.marlowe@gmail.com>)
List pgsql-general
On Tuesday 21 October 2008 09:00:30 postgres Emanuel CALVO FRANCO wrote:
> After run VACUUM, you must run REINDEXDB to decrease indexes.
>

This is probably overkill, as you won't need to do this for a lot of tables in
your database, and the locking issues are probably unhelpful.

> You can pg_resetxlog too, but you need restart server to do that.
>

No No No!!! You should never ever ever run pg_resetxlog on a production
machine!! I'm not sure where you got this idea, but it is a bad one to be
sure!

> 2008/10/21 Ruben Blanco <rubenblan@gmail.com>:
> > Hi:
> >
> > My database is growing fast taking too much disk space. How can I free
> > disk space without performing a VACCUM FULL? It locks the database for
> > several hours, and that is not a solution.
> >
> > I guess a backup-restore would do the work but, isn't there a better way
> > to do this without shutting down postgres?
> >
> > Thanks in advandce.
>
> --
>       Emanuel Calvo Franco
>     Syscope Postgresql DBA
>           BaPUG Member

--
Robert Treat
Build A Brighter LAMP :: Linux Apache {middleware} PostgreSQL

pgsql-general by date:

Previous
From: Teodor Sigaev
Date:
Subject: Re: index scan leads to result that is different from sec scan after upgrading to 8.3.4
Next
From: Tom Lane
Date:
Subject: Re: Varchar vs varchar(64)