Commit af0ba49
committed
Use PageIndexTupleOverwrite() within nbtree.
Use the PageIndexTupleOverwrite() bufpage.c routine within nbtree
instead of deleting a tuple and re-inserting its replacement. This
makes the intent of affected code slightly clearer. It also makes
CREATE INDEX slightly faster, since there is no longer a need to shift
every leaf page's line pointer array back and forth during index builds.
Author: Peter Geoghegan, Anastasia Lubennikova
Reviewed-By: Anastasia Lubennikova
Discussion: https://postgr.es/m/CAH2-Wz=Zk=B9+Vwm376WuO7YTjFc2SSskifQm4Nme3RRRPtOSQ@mail.gmail.com1 parent 815ef2f commit af0ba49
2 files changed
+10
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1653 | 1653 | | |
1654 | 1654 | | |
1655 | 1655 | | |
1656 | | - | |
1657 | | - | |
| 1656 | + | |
1658 | 1657 | | |
1659 | 1658 | | |
1660 | 1659 | | |
1661 | 1660 | | |
1662 | 1661 | | |
1663 | 1662 | | |
1664 | 1663 | | |
1665 | | - | |
1666 | | - | |
1667 | | - | |
| 1664 | + | |
| 1665 | + | |
| 1666 | + | |
1668 | 1667 | | |
1669 | 1668 | | |
1670 | 1669 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
943 | 943 | | |
944 | 944 | | |
945 | 945 | | |
946 | | - | |
947 | 946 | | |
948 | 947 | | |
949 | 948 | | |
| |||
961 | 960 | | |
962 | 961 | | |
963 | 962 | | |
964 | | - | |
965 | | - | |
966 | | - | |
967 | | - | |
968 | | - | |
969 | | - | |
970 | | - | |
971 | | - | |
972 | | - | |
973 | | - | |
974 | | - | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
975 | 966 | | |
976 | 967 | | |
977 | 968 | | |
978 | 969 | | |
979 | 970 | | |
980 | 971 | | |
981 | | - | |
982 | | - | |
983 | | - | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
984 | 975 | | |
985 | 976 | | |
986 | 977 | | |
| |||
0 commit comments