Remove old-style VACUUM FULL (which was known for a little while as

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 0a469c87692d15a22eaa69d4b3a43dd8e278dd64
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2010-02-08T04:33:55Z
Releases: 9.0.0
Remove old-style VACUUM FULL (which was known for a little while as
VACUUM FULL INPLACE), along with a boatload of subsidiary code and complexity.
Per discussion, the use case for this method of vacuuming is no longer large
enough to justify maintaining it; not to mention that we don't wish to invest
the work that would be needed to make it play nicely with Hot Standby.

Aside from the code directly related to old-style VACUUM FULL, this commit
removes support for certain WAL record types that could only be generated
within VACUUM FULL, redirect-pointer removal in heap_page_prune, and
nontransactional generation of cache invalidation sinval messages (the last
being the sticking point for Hot Standby).

We still have to retain all code that copes with finding HEAP_MOVED_OFF and
HEAP_MOVED_IN flag bits on existing tuples.  This can't be removed as long
as we want to support in-place update from pre-9.0 databases.

Files

PathChange+/−
doc/src/sgml/indexam.sgml modified +5 −6
doc/src/sgml/maintenance.sgml modified +26 −32
doc/src/sgml/ref/vacuumdb.sgml modified +8 −24
doc/src/sgml/ref/vacuum.sgml modified +13 −32
src/backend/access/gin/ginvacuum.c modified +3 −16
src/backend/access/gin/README modified +1 −8
src/backend/access/gist/gistvacuum.c modified +7 −51
src/backend/access/heap/heapam.c modified +44 −143
src/backend/access/heap/pruneheap.c modified +17 −118
src/backend/access/heap/README.HOT modified +1 −22
src/backend/access/nbtree/nbtpage.c modified +6 −7
src/backend/access/nbtree/nbtree.c modified +7 −42
src/backend/access/nbtree/nbtxlog.c modified +3 −3
src/backend/access/nbtree/README modified +5 −6
src/backend/access/transam/xact.c modified +12 −21
src/backend/access/transam/xlog.c modified +1 −27
src/backend/catalog/index.c modified +1 −2
src/backend/commands/analyze.c modified +1 −2
src/backend/commands/copy.c modified +2 −2
src/backend/commands/vacuum.c modified +48 −2894
src/backend/commands/vacuumlazy.c modified +3 −6
src/backend/executor/execUtils.c modified +3 −8
src/backend/executor/nodeModifyTable.c modified +3 −3
src/backend/parser/gram.y modified +2 −4
src/backend/storage/lmgr/proc.c modified +2 −3
src/backend/utils/cache/inval.c modified +1 −98
src/backend/utils/time/tqual.c modified +7 −4
src/bin/scripts/vacuumdb.c modified +10 −28
src/include/access/genam.h modified +1 −2
src/include/access/heapam.h modified +4 −9
src/include/access/htup.h modified +16 −24
src/include/access/nbtree.h modified +2 −3
src/include/access/xact.h modified +1 −5
src/include/access/xlog.h modified +1 −2
src/include/commands/vacuum.h modified +1 −2
src/include/executor/executor.h modified +2 −2
src/include/nodes/parsenodes.h modified +2 −3
src/include/parser/kwlist.h modified +1 −2
src/include/utils/inval.h modified +1 −5
src/test/regress/expected/vacuum.out modified +1 −50
src/test/regress/sql/vacuum.sql modified +1 −45