Re: clog_redo causing very long recovery time - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: clog_redo causing very long recovery time
Date
Msg-id 1304652497-sup-8224@alvh.no-ip.org
Whole thread Raw
In response to Re: clog_redo causing very long recovery time  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Excerpts from Tom Lane's message of vie may 06 00:22:43 -0300 2011:

> I think a more elegant fix might be to just swap the order of the 
> ExtendCLOG and ExtendSUBTRANS calls in GetNewTransactionId.  The
> reason that would help is that pg_subtrans isn't WAL-logged, so if
> we succeed doing ExtendSUBTRANS and then fail in ExtendCLOG, we
> won't have written any XLOG entry, and thus repeated failures will not
> result in repeated XLOG entries.  I seem to recall having considered
> exactly that point when the clog WAL support was first done, but the
> scenario evidently wasn't considered when subtransactions were stuck
> in :-(.

I'm pretty sure it would have never occured to me to consider such a
scenario.

-- 
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: clog_redo causing very long recovery time
Next
From: Joe Conway
Date:
Subject: Re: clog_redo causing very long recovery time