postgresql/src/backend/access
Bruce Momjian 6f519ad01c btree source code cleanups:
I refactored findsplitloc and checksplitloc so that the division of
labor is more clear IMO. I pushed all the space calculation inside the
loop to checksplitloc.

I also fixed the off by 4 in free space calculation caused by
PageGetFreeSpace subtracting sizeof(ItemIdData), even though it was
harmless, because it was distracting and I felt it might come back to
bite us in the future if we change the page layout or alignments.
There's now a new function PageGetExactFreeSpace that doesn't do the
subtraction.

findsplitloc now tries the "just the new item to right page" split as
well. If people don't like the refactoring, I can write a patch to just
add that.

Heikki Linnakangas
2007-02-21 20:02:17 +00:00
..
common Combine cmin and cmax fields of HeapTupleHeaders into a single field, by 2007-02-09 03:35:35 +00:00
gin Fix a few typos in comments in GiN. 2007-02-01 04:16:08 +00:00
gist Wording cleanup for error messages. Also change can't -> cannot. 2007-02-01 19:10:30 +00:00
hash Wording cleanup for error messages. Also change can't -> cannot. 2007-02-01 19:10:30 +00:00
heap Combine cmin and cmax fields of HeapTupleHeaders into a single field, by 2007-02-09 03:35:35 +00:00
index Refactor the index AM API slightly: move currentItemData and 2007-01-20 18:43:35 +00:00
nbtree btree source code cleanups: 2007-02-21 20:02:17 +00:00
transam Restructure autovacuum in two processes: a dummy process, which runs 2007-02-15 23:23:23 +00:00
Makefile Replace useless uses of := by = in makefiles. 2007-02-09 15:56:00 +00:00