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

From Mikheev, Vadim
Subject RE: err, XLOG/UW711/cc/Doesn't compile.
Date
Msg-id 8F4C99C66D04D4118F580090272A7A234D319C@sectorbase1.sectorbase.com
Whole thread Raw
In response to err, XLOG/UW711/cc/Doesn't compile.  (Larry Rosenman <ler@lerctr.org>)
Responses Re: err, XLOG/UW711/cc/Doesn't compile.
List pgsql-hackers
> > > 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.

I had no problems with this on Solaris & Linux. Also I think that
there are another places in code where it worked so far.
Anyway, there are just two members in this struct - Larry, could
you try make this assignment by members and let us know ?

Vadim


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: err, XLOG/UW711/cc/Doesn't compile.
Next
From: "Mikheev, Vadim"
Date:
Subject: RE: err, XLOG/UW711/cc/Doesn't compile.