Re: [HACKERS] Should we cacheline align PGXACT? - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: [HACKERS] Should we cacheline align PGXACT?
Date
Msg-id 20170214141316.2qprupx5qwcqzuzc@alvherre.pgsql
Whole thread Raw
In response to Re: [HACKERS] Should we cacheline align PGXACT?  (Alexander Korotkov <a.korotkov@postgrespro.ru>)
List pgsql-hackers
Alexander Korotkov wrote:
> On Tue, Feb 14, 2017 at 3:57 PM, Alvaro Herrera <alvherre@2ndquadrant.com>
> wrote:

> > Yes, I understand.  I just mean that it could be done something like
> > this:
> >
> > #define PGXACTPadSize (PG_CACHE_LINE_SIZE - (offsetof(PGXACT, nxid) +
> > sizeof(uint8)))
> 
> Yes, but I can't use such macro in the definition of PGXACT itself.

/me slaps forehead

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Jim Nasby
Date:
Subject: Re: [HACKERS] Sum aggregate calculation for single precsion real
Next
From: Jim Nasby
Date:
Subject: Re: [HACKERS] libpq Alternate Row Processor