Re: Add a filed to PageHeaderData - Mailing list pgsql-hackers

From Soroosh Sardari
Subject Re: Add a filed to PageHeaderData
Date
Msg-id CAFUsPDY=ekCuAsOZ=zuK8UJZrynmnVgbMyDTu28E9ZN1d+EUOA@mail.gmail.com
Whole thread Raw
In response to Re: Add a filed to PageHeaderData  (Andres Freund <andres@2ndquadrant.com>)
List pgsql-hackers
<div dir="ltr"><br /><div class="gmail_extra"><br /><br /><div class="gmail_quote">On Tue, Jun 24, 2014 at 3:27 PM,
AndresFreund <span dir="ltr"><<a href="mailto:andres@2ndquadrant.com"
target="_blank">andres@2ndquadrant.com</a>></span>wrote:<br /><blockquote class="gmail_quote" style="margin:0px 0px
0px0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class=""><div class="h5">On 2014-06-24 15:23:54
+0430,Soroosh Sardari wrote:<br /> > On Tue, Jun 24, 2014 at 2:40 PM, Kevin Grittner <<a
href="mailto:kgrittn@ymail.com">kgrittn@ymail.com</a>>wrote:<br /> ><br /> > > Soroosh Sardari <<a
href="mailto:soroosh.sardari@gmail.com">soroosh.sardari@gmail.com</a>>wrote:<br /> > ><br /> > > > I
checkthis problem with a virgin source code of<br /> > > > postgresql-9.3.2. So the bug is not for my
codes.<br/> > ><br /> > > > By the way, following code has two different output and it is<br /> >
>> weird.<br /> > ><br /> > > I can confirm that I see the difference in 9.3.2, and that I don't<br
/>> > see the difference in 9.3.4.  Upgrade.<br /> > ><br /> > > <a
href="http://www.postgresql.org/support/versioning/"
target="_blank">http://www.postgresql.org/support/versioning/</a><br/> > ><br /> > > There's really no
pointin reporting a possible bug on a version<br /> > > with known bugs which have already had fixes
published.<br/> > ><br /> > > --<br /> > > Kevin Grittner<br /> > > EDB: <a
href="http://www.enterprisedb.com"target="_blank">http://www.enterprisedb.com</a><br /> > > The Enterprise
PostgreSQLCompany<br /> > ><br /> ><br /> ><br /> > wow, it's arch-dependent.<br /> > in the 32-bit
compiledof PG9.3.2 the code has same output and in 64-bit<br /> > binary of same code output is different!!<br />
><br/> > The problem is not about the sql code I posted in the last email. Problem<br /> > could be different
inany architecture,<br /> > In 32-bit or 64-bit architecture adding a char array of length 20 to<br /> >
PageHeaderDatacause error in regression test.<br /><br /></div></div>You likely didn't adapt SizeOfPageHederData.<br
/><divclass=""><div class="h5"><br /> Greetings,<br /><br /> Andres Freund<br /><br /> --<br />  Andres Freund        
           <a href="http://www.2ndQuadrant.com/" target="_blank">http://www.2ndQuadrant.com/</a><br />  PostgreSQL
Development,24x7 Support, Training & Services<br /></div></div></blockquote></div><br /><br /><br />#define
SizeOfPageHeaderData(offsetof(PageHeaderData, pd_linp))<br /><br /></div><div class="gmail_extra">I think ,the macro
doesnot need any change!<br /></div></div> 

pgsql-hackers by date:

Previous
From: geohas
Date:
Subject: Re: Hooks Docu - list of hooks
Next
From: Robert Haas
Date:
Subject: Re: API change advice: Passing plan invalidation info from the rewriter into the planner?