Commit dd01834
committed
Avoid repeating loads of frozen ID values.
Repeating loads of inplace-updated fields tends to cause bugs like the
one from the previous commit. While there's no bug to fix in these code
sites, adopt the load-once style. This improves the chance of future
copy/paste finding the safe style.
Discussion: https://postgr.es/m/20240423003956.e7.nmisch@google.com1 parent f65ab86 commit dd01834
File tree
4 files changed
+34
-21
lines changed- src/backend
- access/heap
- commands
- postmaster
4 files changed
+34
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5907 | 5907 | | |
5908 | 5908 | | |
5909 | 5909 | | |
5910 | | - | |
5911 | 5910 | | |
5912 | 5911 | | |
5913 | 5912 | | |
| |||
5960 | 5959 | | |
5961 | 5960 | | |
5962 | 5961 | | |
5963 | | - | |
5964 | | - | |
5965 | | - | |
5966 | | - | |
5967 | | - | |
| 5962 | + | |
| 5963 | + | |
| 5964 | + | |
| 5965 | + | |
| 5966 | + | |
| 5967 | + | |
| 5968 | + | |
| 5969 | + | |
| 5970 | + | |
| 5971 | + | |
5968 | 5972 | | |
5969 | 5973 | | |
5970 | 5974 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
919 | 919 | | |
920 | 920 | | |
921 | 921 | | |
922 | | - | |
923 | | - | |
924 | | - | |
925 | | - | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
926 | 929 | | |
927 | 930 | | |
928 | 931 | | |
929 | 932 | | |
930 | | - | |
931 | | - | |
932 | | - | |
933 | | - | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
934 | 940 | | |
935 | 941 | | |
936 | 942 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1200 | 1200 | | |
1201 | 1201 | | |
1202 | 1202 | | |
1203 | | - | |
| 1203 | + | |
1204 | 1204 | | |
1205 | 1205 | | |
1206 | 1206 | | |
| |||
1221 | 1221 | | |
1222 | 1222 | | |
1223 | 1223 | | |
1224 | | - | |
| 1224 | + | |
1225 | 1225 | | |
1226 | 1226 | | |
1227 | 1227 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2938 | 2938 | | |
2939 | 2939 | | |
2940 | 2940 | | |
| 2941 | + | |
2941 | 2942 | | |
2942 | 2943 | | |
2943 | 2944 | | |
| |||
2989 | 2990 | | |
2990 | 2991 | | |
2991 | 2992 | | |
2992 | | - | |
2993 | | - | |
2994 | | - | |
| 2993 | + | |
| 2994 | + | |
| 2995 | + | |
2995 | 2996 | | |
2996 | 2997 | | |
| 2998 | + | |
| 2999 | + | |
2997 | 3000 | | |
2998 | 3001 | | |
2999 | 3002 | | |
3000 | | - | |
3001 | | - | |
| 3003 | + | |
| 3004 | + | |
3002 | 3005 | | |
3003 | 3006 | | |
3004 | 3007 | | |
| |||
0 commit comments