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

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: "Mikheev, Vadim" <vmikheev(at)SECTORBASE(dot)COM>
Cc: "'Larry Rosenman'" <ler(at)lerctr(dot)org>, PostgreSQL Hackers List <pgsql-hackers(at)postgresql(dot)org>
Subject: RE: err, XLOG/UW711/cc/Doesn't compile.
Date: 2000-11-20 18:46:07
Message-ID: Pine.LNX.4.21.0011201945170.1090-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmx(dot)net http://yi.org/peter-e/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2000-11-20 18:58:10 Re: err, XLOG/UW711/cc/Doesn't compile.
Previous Message Martin A. Marques 2000-11-20 18:43:27 Re: [HACKERS] Re: PHPBuilder article -- Postgres vs MySQL