OSDN Git Service

Modify XLogInsert API to make callers specify whether pages to be backed
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 6 Jun 2005 20:22:58 +0000 (20:22 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 6 Jun 2005 20:22:58 +0000 (20:22 +0000)
commitee7ac7b11e9e6623871833729958662a4598fbc5
tree61d4f69957d8971b497bbc0cbcc42c4742a0b352
parent4c8495a1f2ae7a027a4b3e8fdb2aa5b21a5be1fc
Modify XLogInsert API to make callers specify whether pages to be backed
up have the standard layout with unused space between pd_lower and pd_upper.
When this is set, XLogInsert will omit the unused space without bothering
to scan it to see if it's zero.  That saves time in XLogInsert, and also
allows reversion of my earlier patch to make PageRepairFragmentation et al
explicitly re-zero freed space.  Per suggestion by Heikki Linnakangas.
14 files changed:
src/backend/access/heap/heapam.c
src/backend/access/nbtree/nbtinsert.c
src/backend/access/nbtree/nbtpage.c
src/backend/access/nbtree/nbtsort.c
src/backend/access/transam/clog.c
src/backend/access/transam/xact.c
src/backend/access/transam/xlog.c
src/backend/commands/dbcommands.c
src/backend/commands/sequence.c
src/backend/commands/tablecmds.c
src/backend/commands/tablespace.c
src/backend/storage/page/bufpage.c
src/backend/storage/smgr/smgr.c
src/include/access/xlog.h