pgsql: Move log_newpage and log_newpage_buffer to xlog.c.

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Move log_newpage and log_newpage_buffer to xlog.c.
Date: 2014-07-31 13:59:22
Message-ID: E1XCqt8-0000hR-L8@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Move log_newpage and log_newpage_buffer to xlog.c.

log_newpage is used by many indexams, in addition to heap, but for
historical reasons it's always been part of the heapam rmgr. Starting with
9.3, we have another WAL record type for logging an image of a page,
XLOG_FPI. Simplify things by moving log_newpage and log_newpage_buffer to
xlog.c, and switch to using the XLOG_FPI record type.

Bump the WAL version number because the code to replay the old HEAP_NEWPAGE
records is removed.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/54685338e37889eebd473804c3feb006dd83a882

Modified Files
--------------
src/backend/access/gin/gindatapage.c | 1 -
src/backend/access/gin/gininsert.c | 1 -
src/backend/access/gin/ginxlog.c | 3 +-
src/backend/access/gist/gist.c | 1 -
src/backend/access/heap/heapam.c | 180 ------------------------------
src/backend/access/nbtree/nbtree.c | 1 -
src/backend/access/nbtree/nbtsort.c | 1 -
src/backend/access/rmgrdesc/heapdesc.c | 9 --
src/backend/access/spgist/spginsert.c | 1 -
src/backend/access/transam/xlog.c | 131 +++++++++++++++++++++-
src/backend/commands/tablecmds.c | 1 -
src/backend/replication/logical/decode.c | 8 --
src/include/access/heapam_xlog.h | 19 +---
src/include/access/xlog.h | 5 +
src/include/access/xlog_internal.h | 2 +-
15 files changed, 139 insertions(+), 225 deletions(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Simon Riggs 2014-07-31 14:19:57 Re: pgsql: Move log_newpage and log_newpage_buffer to xlog.c.
Previous Message Tom Lane 2014-07-30 18:42:36 pgsql: Avoid wholesale autovacuuming when autovacuum is nominally off.

Browse pgsql-hackers by date

  From Date Subject
Next Message Fabien COELHO 2014-07-31 14:01:46 Re: gaussian distribution pgbench -- splits v4
Previous Message Bruce Momjian 2014-07-31 13:09:34 Re: Proposal: Incremental Backup