Re: [COMMITTERS] pgsql: Remove sanity test in XRecOffIsValid.

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org, Robert Haas <rhaas(at)postgresql(dot)org>, Heikki Linnakangas <heikki(at)enterprisedb(dot)com>
Subject: Re: [COMMITTERS] pgsql: Remove sanity test in XRecOffIsValid.
Date: 2012-06-25 17:12:54
Message-ID: CA+TgmoYaQVCCQ9WXi=1o=fmkkRtne1=jSZh-G2mp_ZsEfWP1Rw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On Mon, Jun 25, 2012 at 12:35 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Robert Haas <rhaas(at)postgresql(dot)org> writes:
>> Remove sanity test in XRecOffIsValid.
>
>> Commit 061e7efb1b4c5b8a5d02122b7780531b8d5bf23d changed the rules
>> for splitting xlog records across pages, but neglected to update this
>> test.  It's possible that there's some better action here than just
>> removing the test completely, but this at least appears to get some
>> of the things that are currently broken (like initdb on MacOS X)
>> working again.
>
> Offhand, I'm wondering why this macro doesn't include a MAXALIGN test.
> If it did, I don't think that the upper-limit test would have any
> use anymore.

Yeah, I wondered that, too, but wasn't sure enough about what the real
alignment requirements were to do it myself.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2012-06-25 18:00:57 pgsql: Unbreak pg_resetxlog -l.
Previous Message Tom Lane 2012-06-25 16:35:02 Re: [COMMITTERS] pgsql: Remove sanity test in XRecOffIsValid.

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2012-06-25 17:16:23 Re: pg_upgrade broken by xlog numbering
Previous Message Robert Haas 2012-06-25 17:09:38 Re: Catalog/Metadata consistency during changeset extraction from wal