Commit 000f557
committed
Fix style violations in syscache lookups.
Project style is to check the success of SearchSysCacheN and friends
by applying HeapTupleIsValid to the result. A tiny minority of calls
creatively did it differently. Bring them into line with the rest.
This is just cosmetic, since HeapTupleIsValid is indeed just a null
check at the moment ... but that may not be true forever, and in any
case it puts a mental burden on readers who may wonder why these
call sites are not like the rest.
Back-patch to v11 just to keep the branches in sync. (The bulk of these
errors seem to have originated in v11 or v12, though a few are old.)
Per searching to see if anyplace else had made the same error
repaired in 62148c3.1 parent 030ad0a commit 000f557
File tree
6 files changed
+11
-12
lines changed- src/backend
- catalog
- commands
- optimizer/util
6 files changed
+11
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1069 | 1069 | | |
1070 | 1070 | | |
1071 | 1071 | | |
1072 | | - | |
| 1072 | + | |
1073 | 1073 | | |
1074 | 1074 | | |
1075 | 1075 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1057 | 1057 | | |
1058 | 1058 | | |
1059 | 1059 | | |
1060 | | - | |
| 1060 | + | |
1061 | 1061 | | |
1062 | 1062 | | |
1063 | 1063 | | |
| |||
1123 | 1123 | | |
1124 | 1124 | | |
1125 | 1125 | | |
1126 | | - | |
| 1126 | + | |
1127 | 1127 | | |
1128 | 1128 | | |
1129 | 1129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
410 | | - | |
| 410 | + | |
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7926 | 7926 | | |
7927 | 7927 | | |
7928 | 7928 | | |
7929 | | - | |
| 7929 | + | |
7930 | 7930 | | |
7931 | 7931 | | |
7932 | 7932 | | |
| |||
7995 | 7995 | | |
7996 | 7996 | | |
7997 | 7997 | | |
7998 | | - | |
| 7998 | + | |
7999 | 7999 | | |
8000 | 8000 | | |
8001 | 8001 | | |
| |||
15310 | 15310 | | |
15311 | 15311 | | |
15312 | 15312 | | |
15313 | | - | |
| 15313 | + | |
15314 | 15314 | | |
15315 | 15315 | | |
15316 | 15316 | | |
| |||
15650 | 15650 | | |
15651 | 15651 | | |
15652 | 15652 | | |
15653 | | - | |
15654 | | - | |
15655 | | - | |
| 15653 | + | |
| 15654 | + | |
15656 | 15655 | | |
15657 | 15656 | | |
15658 | 15657 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1335 | 1335 | | |
1336 | 1336 | | |
1337 | 1337 | | |
1338 | | - | |
| 1338 | + | |
1339 | 1339 | | |
1340 | 1340 | | |
1341 | 1341 | | |
| |||
0 commit comments