postgresql/src
Robert Haas a892234f83 Change the format of the VM fork to add a second bit per page.
The new bit indicates whether every tuple on the page is already frozen.
It is cleared only when the all-visible bit is cleared, and it can be
set only when we vacuum a page and find that every tuple on that page is
both visible to every transaction and in no need of any future
vacuuming.

A future commit will use this new bit to optimize away full-table scans
that would otherwise be triggered by XID wraparound considerations.  A
page which is merely all-visible must still be scanned in that case, but
a page which is all-frozen need not be.  This commit does not attempt
that optimization, although that optimization is the goal here.  It
seems better to get the basic infrastructure in place first.

Per discussion, it's very desirable for pg_upgrade to automatically
migrate existing VM forks from the old format to the new format.  That,
too, will be handled in a follow-on patch.

Masahiko Sawada, reviewed by Kyotaro Horiguchi, Fujii Masao, Amit
Kapila, Simon Riggs, Andres Freund, and others, and substantially
revised by me.
2016-03-01 21:49:41 -05:00
..
backend Change the format of the VM fork to add a second bit per page. 2016-03-01 21:49:41 -05:00
bin Extend pgbench's expression syntax to support a few built-in functions. 2016-03-01 13:08:30 -05:00
common Cosmetic improvements in new config_info code. 2016-02-21 11:38:24 -05:00
include Change the format of the VM fork to add a second bit per page. 2016-03-01 21:49:41 -05:00
interfaces Fix incorrect comment. 2016-03-01 13:31:44 -05:00
makefiles Fix typos in comments and doc 2016-01-28 16:47:36 +09:00
pl Improve coverage of pltcl regression tests. 2016-03-01 20:01:16 -05:00
port Add new system view, pg_config 2016-02-17 09:12:06 -08:00
template Remove some remains from Alpha support removal 2015-10-29 16:40:14 -04:00
test Add more tests for commit_timestamp feature 2016-03-01 19:53:18 -03:00
timezone Update time zone data files to tzdata release 2016a. 2016-02-05 10:59:09 -05:00
tools Minor tweaks for new src/test/recovery 2016-02-29 18:16:59 -03:00
tutorial Update copyright for 2016 2016-01-02 13:33:40 -05:00
.gitignore
bcc32.mak
DEVELOPERS
Makefile
Makefile.global.in Respect TEMP_CONFIG when pg_regress_check and friends are called 2016-02-27 12:28:21 -05:00
Makefile.shlib AIX: Link TRANSFORM modules with their dependencies. 2015-07-15 21:00:26 -04:00
nls-global.mk Setup error context callback for transaction lock waits 2014-03-19 15:10:36 -03:00
win32.mak