Re: WAL archiving not starting at the beginning

From: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "Michael Angeletti *EXTERN*" <flashdesignpro(at)gmail(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: WAL archiving not starting at the beginning
Date: 2013-06-24 08:43:00
Message-ID: A737B7A37273E048B164557ADEF4A58B17BB5AC1@ntex2010a.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Michael Angeletti wrote:
> I'm Michael, and this is my first post here.
>
> I asked this question last night:
>
>
> http://dba.stackexchange.com/questions/45077
>
>
> which details the problem (or not?) I'm having. The gist of it is that Postgres is not archiving the
> first WAL segments for my cluster. You'll note that I changed the wal_level from "minimal" to
> "hot_standby" at the same time as I turned archiving on. I'm not sure if A) that's a no-no (changing
> the wal_level after a new cluster has started once), B) it's a bug/problem to have my archives
> starting at the 6th log, despite the first 5 still being in pg_xlog, C) if my switching of wal_level
> has anything to do with the issue, and D) if I need to start over with a fresh database or something,
> in order to remedy the issue.

I can't answer the question without digging deeper, but I
wonder why you care. It is not necessary to have all WAL
segments archived, but only the ones after your first base backup.
And you won't be able to make a base backup before you turn
wal_level to "archive" or higher.

Yours,
Laurenz Albe

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ingmar Brouns 2013-06-24 10:08:11 Re: Get / Set Composite Type Fields within triggers
Previous Message Albe Laurenz 2013-06-24 08:19:54 Re: File size consideration of file_fdw in PostgreSQL