pgsql: Correctly align page's images in generic wal API

From: Teodor Sigaev <teodor(at)sigaev(dot)ru>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Correctly align page's images in generic wal API
Date: 2016-05-16 21:01:53
Message-ID: E1b2PeD-00021o-NR@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Correctly align page's images in generic wal API

Page image should be MAXALIGN'ed because existing code could directly align
pointers in page instead of align offset from beginning of page.

Found during play with indexes as extenstion, Alexander Korotkov and me

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/7c8345f67f3008a394adccae262f2a2162b6f5c7

Modified Files
--------------
src/backend/access/transam/generic_xlog.c | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2016-05-16 21:47:16 Re: [COMMITTERS] pgsql: Correctly align page's images in generic wal API
Previous Message Robert Haas 2016-05-16 16:07:59 pgsql: postgres_fdw: Fix the fix for crash when pushing down multiple j

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2016-05-16 21:01:55 Re: [HACKERS] Re: [HACKERS] Re: [HACKERS] Re: [HACKERS] Windows service is not starting so there’s message in log: FATAL: "could not create shared memory segment “Global/PostgreSQL.851401618”: Permission denied”
Previous Message Michael Paquier 2016-05-16 21:01:29 Re: [HACKERS] Re: [HACKERS] Re: [HACKERS] Re: [HACKERS] Windows service is not starting so there’s message in log: FATAL: "could not create shared memory segment “Global/PostgreSQL.851401618”: Permission denied”