forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7378527
Add sanity asserts for index OID and attnums during cache init
There was already a check on the relation OID, but not its index OID andthe attributes that can be used during the syscache lookups. The twoassertions added by this commit are cheap, and actually useful fordevelopers to fasten the detection of incorrect data in a new entryadded in the syscache list, as these assertions are triggered during theinitial cache loading (initdb, or just backend startup), not requiring asyscache that uses the new entry.While on it, the relation OID check is switched to use OidIsValid().Author: Aleksander AlekseevReviewed-by: Dagfinn Ilmari Mannsåker, Zhang Mingli, Michael PaquierDiscussion:https://postgr.es/m/CAJ7c6TOjUTJ0jxvWY6oJeP2-840OF8ch7qscZQsuVuotXTOS_g@mail.gmail.com1 parentea8b018 commit7378527
2 files changed
+6
-1
lines changedLines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
825 | 825 |
| |
826 | 826 |
| |
827 | 827 |
| |
| 828 | + | |
| 829 | + | |
828 | 830 |
| |
| 831 | + | |
829 | 832 |
| |
830 | 833 |
| |
831 | 834 |
| |
|
Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
720 | 720 |
| |
721 | 721 |
| |
722 | 722 |
| |
723 |
| - | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
724 | 726 |
| |
725 | 727 |
| |
726 | 728 |
| |
|
0 commit comments
Comments
(0)