forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2b2c5aa
committed
Use ereport not elog for some corrupt-HOT-chain reports.
These errors have been seen in the field in corrupted-data situations.It seems worthwhile to report them with ERRCODE_DATA_CORRUPTED, ratherthan the generic ERRCODE_INTERNAL_ERROR, for the benefit of log monitoringand tools like amcheck. However, use errmsg_internal so that the textstrings still aren't translated; it seems unlikely to be worthtranslators' time to do so.Back-patch to 9.3, like the predecessor commitd70cf81 that introducedthese elog calls originally (replacing Asserts).Peter GeogheganDiscussion:https://postgr.es/m/CAH2-Wzmn4-Pg-UGFwyuyK-wiTih9j32pwg_7T9iwqXpAUZr=Mg@mail.gmail.com1 parentaad956a commit2b2c5aa
1 file changed
+12
-7
lines changedLines changed: 12 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2589 | 2589 |
| |
2590 | 2590 |
| |
2591 | 2591 |
| |
2592 |
| - | |
2593 |
| - | |
2594 |
| - | |
| 2592 | + | |
| 2593 | + | |
| 2594 | + | |
| 2595 | + | |
| 2596 | + | |
| 2597 | + | |
2595 | 2598 |
| |
2596 | 2599 |
| |
2597 | 2600 |
| |
| |||
3054 | 3057 |
| |
3055 | 3058 |
| |
3056 | 3059 |
| |
3057 |
| - | |
3058 |
| - | |
3059 |
| - | |
3060 |
| - | |
| 3060 | + | |
| 3061 | + | |
| 3062 | + | |
| 3063 | + | |
| 3064 | + | |
| 3065 | + | |
3061 | 3066 |
| |
3062 | 3067 |
| |
3063 | 3068 |
| |
|
0 commit comments
Comments
(0)