* Mikheev, Vadim <[EMAIL PROTECTED]> [001120 13:29]:
> > > It's because XLogRecPtr is a struct. You can't assign structs with
> > > '='. Gotta use memcpy, etc.
> >
> > Correction: It's because the compiler won't let you cast to a
> > struct. Assigning seems to compile okay.
>
> Oh, ok - seem
* Mikheev, Vadim <[EMAIL PROTECTED]> [001120 13:26]:
> > > > 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 su
> > It's because XLogRecPtr is a struct. You can't assign structs with
> > '='. Gotta use memcpy, etc.
>
> Correction: It's because the compiler won't let you cast to a
> struct. Assigning seems to compile okay.
Oh, ok - seems we can just get rid of casting there.
Vadim
> > > 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 by
Peter Eisentraut <[EMAIL PROTECTED]> writes:
> It's because XLogRecPtr is a struct. You can't assign structs with
> '='. Gotta use memcpy, etc.
Struct assignment is a required feature since ANSI C, and I'm pretty
sure we use it in other places already. I doubt that's the explanation
for Larry'
I wrote:
> 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..
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
* Mikheev, Vadim <[EMAIL PROTECTED]> [001120 12:00]:
> > 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 d
> 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.
Did
* Larry Rosenman <[EMAIL PROTECTED]> [001120 09:05]:
[snip]
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...
LER
--
L
10 matches
Mail list logo