Re: [HACKERS] err, XLOG/UW711/cc/Doesn't compile.

2000-11-20 Thread 'Larry Rosenman'
* 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

Re: [HACKERS] err, XLOG/UW711/cc/Doesn't compile.

2000-11-20 Thread 'Larry Rosenman'
* 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

RE: [HACKERS] err, XLOG/UW711/cc/Doesn't compile.

2000-11-20 Thread Mikheev, Vadim
> > 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

RE: [HACKERS] err, XLOG/UW711/cc/Doesn't compile.

2000-11-20 Thread Mikheev, 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

Re: [HACKERS] err, XLOG/UW711/cc/Doesn't compile.

2000-11-20 Thread Tom Lane
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'

RE: [HACKERS] err, XLOG/UW711/cc/Doesn't compile.

2000-11-20 Thread Peter Eisentraut
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..

RE: [HACKERS] err, XLOG/UW711/cc/Doesn't compile.

2000-11-20 Thread Peter Eisentraut
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

Re: [HACKERS] err, XLOG/UW711/cc/Doesn't compile.

2000-11-20 Thread 'Larry Rosenman'
* 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

RE: [HACKERS] err, XLOG/UW711/cc/Doesn't compile.

2000-11-20 Thread Mikheev, 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 bytes structure in pageheader. Did

Re: [HACKERS] err, XLOG/UW711/cc/Doesn't compile.

2000-11-20 Thread Larry Rosenman
* 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