postgresql/src/include/access
Heikki Linnakangas f8f4227976 Refactor per-page logic common to all redo routines to a new function.
Every redo routine uses the same idiom to determine what to do to a page:
check if there's a backup block for it, and if not read, the buffer if the
block exists, and check its LSN. Refactor that into a common function,
XLogReadBufferForRedo, making all the redo routines shorter and more
readable.

This has no user-visible effect, and makes no changes to the WAL format.

Reviewed by Andres Freund, Alvaro Herrera, Michael Paquier.
2014-09-02 15:10:28 +03:00
..
attnum.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
clog.h Change the signature of rm_desc so that it's passed a XLogRecord. 2014-06-14 10:46:48 +03:00
genam.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
gin.h Change the signature of rm_desc so that it's passed a XLogRecord. 2014-06-14 10:46:48 +03:00
gin_private.h Silence warning on new versions of clang. 2014-09-02 14:26:06 +03:00
gist.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
gist_private.h Change the signature of rm_desc so that it's passed a XLogRecord. 2014-06-14 10:46:48 +03:00
gistscan.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
hash.h Fix whitespace 2014-07-11 15:12:11 -04:00
heapam.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
heapam_xlog.h Move log_newpage and log_newpage_buffer to xlog.c. 2014-07-31 16:48:55 +03:00
hio.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
htup.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
htup_details.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
itup.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
multixact.h Avoid uselessly looking up old LOCK_ONLY multixacts 2014-07-29 15:41:06 -04:00
nbtree.h Avoid copying index tuples when building an index. 2014-07-01 10:34:42 -04:00
printtup.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
reloptions.h Revert "Allow units to be specified in relation option setting value." 2014-08-29 05:10:47 +09:00
relscan.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
rewriteheap.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
rmgr.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
rmgrlist.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
sdir.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
skey.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
slru.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
spgist.h Change the signature of rm_desc so that it's passed a XLogRecord. 2014-06-14 10:46:48 +03:00
spgist_private.h Adjust SP-GiST WAL record formats to reduce alignment padding. 2014-06-05 12:55:35 +03:00
subtrans.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
sysattr.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
timeline.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
transam.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
tupconvert.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
tupdesc.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
tupmacs.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
tuptoaster.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
twophase.h Fix race condition in preparing a transaction for two-phase commit. 2014-05-15 16:37:50 +03:00
twophase_rmgr.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
valid.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
visibilitymap.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
xact.h Treat 2PC commit/abort the same as regular xacts in recovery. 2014-07-29 11:59:22 +03:00
xlog.h Move log_newpage and log_newpage_buffer to xlog.c. 2014-07-31 16:48:55 +03:00
xlog_fn.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
xlog_internal.h Move log_newpage and log_newpage_buffer to xlog.c. 2014-07-31 16:48:55 +03:00
xlogdefs.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
xlogreader.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
xlogutils.h Refactor per-page logic common to all redo routines to a new function. 2014-09-02 15:10:28 +03:00