Re: page macros cleanup - Mailing list pgsql-patches

From Pavan Deolasee
Subject Re: page macros cleanup
Date
Msg-id 2e78013d0807030450m4cab60d0jd99d1acce59fae56@mail.gmail.com
Whole thread Raw
In response to page macros cleanup  (Zdenek Kotala <Zdenek.Kotala@Sun.COM>)
Responses Re: page macros cleanup  (Zdenek Kotala <Zdenek.Kotala@Sun.COM>)
List pgsql-patches
On Fri, Jun 13, 2008 at 9:38 PM, Zdenek Kotala <Zdenek.Kotala@sun.com> wrote:
> I attached code cleanup which is related to in-place upgrade. I replace
> direct access to PageHeader structure with already existing macros and I
> removed also unnecessary retyping.

A quick review comment:

One thing I noticed is that the modified definition of HashMaxItemSize
now does not account for the size of ItemId which may not be the right
thing. Please recheck that.

Apart from that the patch looks good to me. As you said, we should
probably replace the other direct usage of PageHeader with appropriate
macros.

Thanks,
Pavan


--
Pavan Deolasee
EnterpriseDB http://www.enterprisedb.com

pgsql-patches by date:

Previous
From: Markus Wanner
Date:
Subject: Re: Regression test database name
Next
From: daveg
Date:
Subject: Re: pg_dump lock timeout