WIP XLog Switch

From: Simon Riggs <simon(at)2ndquadrant(dot)com>
To: pgsql-patches(at)postgresql(dot)org
Subject: WIP XLog Switch
Date: 2005-04-19 18:44:36
Message-ID: 1113936276.16721.2174.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches


WIP patch to perform a switch from one log file to next when we do a
pg_stop_backup(), including wal replay handling at recovery time.

Patch currently crashes server at various points, so don't stare too
hard, but patch applies cleanly on cvstip, compiles and make checks.

Main issue is the need to poke the xlog record pointer with a new value
after the log switch. I'm a little uncertain about that approach and I'm
very likely getting it wrong now. Better ideas welcome.

Patch is incomplete in that it doesn't handle shutdown checkpoints as
log switches in archive mode (yet)

Also nothing in here about standby databases (yet)

Any comments appreciated before I spend too much time on this.

Best Regards, Simon Riggs

Attachment Content-Type Size
logswitch1.patch text/x-patch 16.5 KB

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Hannu Krosing 2005-04-19 23:08:02 Re: COPY Fillfactor patch
Previous Message Bruce Momjian 2005-04-19 16:29:32 Re: pg_autovacuum UPDATE_INTERVAL cmd arg