Andrey Borodin <x4mmm@yandex-team.ru> writes:
>> That error message is remarkably unhelpful, and I think unnecessarily so.
>> Why the heck isn't XlogReadTwoPhaseData passing on the error string
>> that it just got from XLogReadRecord?
> Noah recently proposed the same [0]. But responders like me started to complain about other places without error
reportingaround xlog reading.
Ah, I missed that thread. Now that we've seen another instance of the
same failure, I agree it's urgent to get something committed. Noah's
patch matches the style of some other callers, so let's go with that.
(And yeah, why are some of the other callers ignoring errormsg? But
that can wait.)
regards, tom lane