forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitaf0ba49
committed
Use PageIndexTupleOverwrite() within nbtree.
Use the PageIndexTupleOverwrite() bufpage.c routine within nbtreeinstead of deleting a tuple and re-inserting its replacement. Thismakes the intent of affected code slightly clearer. It also makesCREATE INDEX slightly faster, since there is no longer a need to shiftevery leaf page's line pointer array back and forth during index builds.Author: Peter Geoghegan, Anastasia LubennikovaReviewed-By: Anastasia LubennikovaDiscussion:https://postgr.es/m/CAH2-Wz=Zk=B9+Vwm376WuO7YTjFc2SSskifQm4Nme3RRRPtOSQ@mail.gmail.com1 parent815ef2f commitaf0ba49
2 files changed
+10
-20
lines changedLines changed: 4 additions & 5 deletions
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 |
| |
|
Lines changed: 6 additions & 15 deletions
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
Comments
(0)