forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit69f883f
committed
Fix RelationIdGetRelation calls that weren't bothering with error checks.
Some of these are quite old, but that doesn't make them not bugs.We'd rather report a failure via elog than SIGSEGV.While at it, uniformly spell the error check as !RelationIsValid(rel)rather than a bare rel == NULL test. The machine code is the samebut it seems better to be consistent.Coverity complained about this today, not sure why, because themistake is in fact old.1 parentd807200 commit69f883f
File tree
2 files changed
+9
-2
lines changed- src/backend
- access/heap
- replication/logical
2 files changed
+9
-2
lines changedLines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8128 | 8128 |
| |
8129 | 8129 |
| |
8130 | 8130 |
| |
| 8131 | + | |
| 8132 | + | |
| 8133 | + | |
8131 | 8134 |
| |
8132 | 8135 |
| |
8133 | 8136 |
| |
|
Lines changed: 6 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1553 | 1553 |
| |
1554 | 1554 |
| |
1555 | 1555 |
| |
1556 |
| - | |
| 1556 | + | |
1557 | 1557 |
| |
1558 | 1558 |
| |
1559 | 1559 |
| |
| |||
1671 | 1671 |
| |
1672 | 1672 |
| |
1673 | 1673 |
| |
1674 |
| - | |
| 1674 | + | |
1675 | 1675 |
| |
1676 | 1676 |
| |
1677 | 1677 |
| |
| |||
3031 | 3031 |
| |
3032 | 3032 |
| |
3033 | 3033 |
| |
| 3034 | + | |
| 3035 | + | |
| 3036 | + | |
| 3037 | + | |
3034 | 3038 |
| |
3035 | 3039 |
| |
3036 | 3040 |
| |
|
0 commit comments
Comments
(0)