forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5f73d72
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 parent1df4123 commit5f73d72
File tree
2 files changed
+9
-1
lines changed- src/backend
- access/heap
- replication/logical
2 files changed
+9
-1
lines changedLines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7470 | 7470 |
| |
7471 | 7471 |
| |
7472 | 7472 |
| |
| 7473 | + | |
| 7474 | + | |
| 7475 | + | |
| 7476 | + | |
7473 | 7477 |
| |
7474 | 7478 |
| |
7475 | 7479 |
| |
|
Lines changed: 5 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1535 | 1535 |
| |
1536 | 1536 |
| |
1537 | 1537 |
| |
1538 |
| - | |
| 1538 | + | |
1539 | 1539 |
| |
1540 | 1540 |
| |
1541 | 1541 |
| |
| |||
2814 | 2814 |
| |
2815 | 2815 |
| |
2816 | 2816 |
| |
| 2817 | + | |
| 2818 | + | |
| 2819 | + | |
| 2820 | + | |
2817 | 2821 |
| |
2818 | 2822 |
| |
2819 | 2823 |
| |
|
0 commit comments
Comments
(0)