RE: err, XLOG/UW711/cc/Doesn't compile. - Mailing list pgsql-hackers

From Peter Eisentraut
Subject RE: err, XLOG/UW711/cc/Doesn't compile.
Date
Msg-id Pine.LNX.4.21.0011201945170.1090-100000@peter.localdomain
Whole thread Raw
In response to RE: err, XLOG/UW711/cc/Doesn't compile.  ("Mikheev, Vadim" <vmikheev@SECTORBASE.COM>)
Responses RE: err, XLOG/UW711/cc/Doesn't compile.
Re: err, XLOG/UW711/cc/Doesn't compile.
List pgsql-hackers
Mikheev, Vadim writes:

> > more info.  It seems to not like the following from
> > src/include/buffer/bufpage.h (line 305):
> > #define PageSetLSN(page, lsn) \
> >         (((PageHeader) (page))->pd_lsn = (XLogRecPtr) (lsn))
> > 
> > I'm not sure what it's trying to do... 
> 
> Just assign values to 8 bytes structure in pageheader.

It's because XLogRecPtr is a struct.  You can't assign structs with
'='.  Gotta use memcpy, etc.

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



pgsql-hackers by date:

Previous
From: "G. Anthony Reina"
Date:
Subject: [Fwd: Weird backup file]
Next
From: Peter Eisentraut
Date:
Subject: RE: err, XLOG/UW711/cc/Doesn't compile.