forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8ecdc2f
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 parent477ad05 commit8ecdc2f
1 file changed
+12
-7
lines changedLines changed: 12 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2862 | 2862 |
| |
2863 | 2863 |
| |
2864 | 2864 |
| |
2865 |
| - | |
2866 |
| - | |
2867 |
| - | |
| 2865 | + | |
| 2866 | + | |
| 2867 | + | |
| 2868 | + | |
| 2869 | + | |
| 2870 | + | |
2868 | 2871 |
| |
2869 | 2872 |
| |
2870 | 2873 |
| |
| |||
3327 | 3330 |
| |
3328 | 3331 |
| |
3329 | 3332 |
| |
3330 |
| - | |
3331 |
| - | |
3332 |
| - | |
3333 |
| - | |
| 3333 | + | |
| 3334 | + | |
| 3335 | + | |
| 3336 | + | |
| 3337 | + | |
| 3338 | + | |
3334 | 3339 |
| |
3335 | 3340 |
| |
3336 | 3341 |
| |
|
0 commit comments
Comments
(0)