Re: HELP!!! The WAL Archive is taking up all space

From: Andreas Kretschmer <andreas(at)a-kretschmer(dot)de>
To: John R Pierce <pierce(at)hogranch(dot)com>, FattahRozzaq <ssoorruu(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: HELP!!! The WAL Archive is taking up all space
Date: 2015-12-10 01:05:06
Message-ID: 1615027692.316500.1449709506730.JavaMail.open-xchange@oxweb01.ims-firmen.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> FattahRozzaq <ssoorruu(at)gmail(dot)com> hat am 10. Dezember 2015 um 01:27
> geschrieben:
>
>
> Hi John,
>
> I really don't know why I should keep the wal archives.

That's the problem! But that's your part, not our. If you need a Backup with
PITR-capability you have to create a so called basebackup and continously WAL's.
If you create later, say the next day, a new Basebackup and your Backup-Policy
is hold one Backup, than you can delete all WAL's untill to the new Basebackup
and the old Backup.

If i where you i would use somethink like barman (see: http://www.pgbarman.org/
) for that. And yes: you should a extra Backup-Server. If you have both
(Database and Backup) on the same machine and the machine burns you will lost
both, data and backup.

Questions?

> I implement streaming replication into 1 server (standby server).

Streamin Replication can't replace a Backup!

> I'm really newbie to PostgreSQL but the boss pushed me to handle it
> and implement it in production f*&%*$%%$#%$#&# (forgive me)
> They don't hire a database expert, I don't know why.

You can learn that. PostgreSQL is really, really great.
Btw.: i know companies providing remote DBA service for PostgreSQL.

> http://blog.endpoint.com/2014/09/pgxlog-disk-space-problem-on-postgres.html
> And I change the archive_command into: archive_command = '/bin/true'
> Is it a bad decision?

Maybe. You don't have a backup now. In case of desaster your boss will fire YOU!
(and not me)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Berend Tober 2015-12-10 01:59:32 Re: Deletion Challenge
Previous Message Adrian Klaver 2015-12-10 01:02:31 Re: HELP!!! The WAL Archive is taking up all space