forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8e25be4
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 parent0ddaaa4 commit8e25be4
1 file changed
+12
-7
lines changedLines changed: 12 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2573 | 2573 |
| |
2574 | 2574 |
| |
2575 | 2575 |
| |
2576 |
| - | |
2577 |
| - | |
2578 |
| - | |
| 2576 | + | |
| 2577 | + | |
| 2578 | + | |
| 2579 | + | |
| 2580 | + | |
| 2581 | + | |
2579 | 2582 |
| |
2580 | 2583 |
| |
2581 | 2584 |
| |
| |||
3042 | 3045 |
| |
3043 | 3046 |
| |
3044 | 3047 |
| |
3045 |
| - | |
3046 |
| - | |
3047 |
| - | |
3048 |
| - | |
| 3048 | + | |
| 3049 | + | |
| 3050 | + | |
| 3051 | + | |
| 3052 | + | |
| 3053 | + | |
3049 | 3054 |
| |
3050 | 3055 |
| |
3051 | 3056 |
| |
|
0 commit comments
Comments
(0)