show xl_prev in xlog.c errcontext - Mailing list pgsql-hackers

From Alvaro Herrera
Subject show xl_prev in xlog.c errcontext
Date
Msg-id 20150415203536.GH4369@alvh.no-ip.org
Whole thread Raw
Responses Re: show xl_prev in xlog.c errcontext
List pgsql-hackers
I found this patch in my local repo that I wrote some weeks or months
ago while debugging some XLog corruption problem: it was difficult to
pinpoint what XLog record in a long sequence of WAL files was causing a
problem, and the displaying the prev pointer in errcontext made finding
it much easier -- I could correlate it with pg_xlogdump output, I think.

Anyone sees a reason not to apply this or something like it?

(As I recall, we eventually found out that the underlying issue was that
two postmasters shared one data area over NFS and were overwriting one
another's WAL files, or something like that.  But this was some time ago
so I could be mistaken that it's the same case.)

--
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Attachment

pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: raw output from copy
Next
From: Andrzej Barszcz
Date:
Subject: reparsing query