- Notifications
You must be signed in to change notification settings - Fork5
Commite796d0a
committed
Add a nonlocalized version of the severity field to client error messages.
This has been requested a few times, but the use-case for it was neverentirely clear. The reason for adding it now is that transmission oferror reports from parallel workers fails when NLS is active, becausepq_parse_errornotice() wrongly assumes that the existing severity fieldis nonlocalized. There are other ways we could have fixed that, but theother options were basically kluges, whereas this way provides somethingthat's at least arguably a useful feature along with the bug fix.Per report from Jakob Egger. Back-patch into 9.6, because otherwiseparallel query is essentially unusable in non-English locales. Theproblem exists in 9.5 as well, but we don't want to risk changingon-the-wire behavior in 9.5 (even though the possibility of new errorfields is specifically called out in the protocol document). It maybe sufficient to leave the issue unfixed in 9.5, given the very limitedusefulness of pq_parse_errornotice in that version.Discussion: <A88E0006-13CB-49C6-95CC-1A77D717213C@eggerapps.at>1 parentbef2d62 commite796d0a
File tree
6 files changed
+78
-18
lines changed- doc/src/sgml
- src
- backend
- libpq
- utils/error
- include
- interfaces/libpq
6 files changed
+78
-18
lines changedLines changed: 16 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2767 | 2767 |
| |
2768 | 2768 |
| |
2769 | 2769 |
| |
| 2770 | + | |
| 2771 | + | |
| 2772 | + | |
| 2773 | + | |
| 2774 | + | |
| 2775 | + | |
| 2776 | + | |
| 2777 | + | |
| 2778 | + | |
| 2779 | + | |
| 2780 | + | |
| 2781 | + | |
| 2782 | + | |
| 2783 | + | |
| 2784 | + | |
| 2785 | + | |
2770 | 2786 |
| |
2771 | 2787 |
| |
2772 | 2788 |
| |
|
Lines changed: 19 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4882 | 4882 |
| |
4883 | 4883 |
| |
4884 | 4884 |
| |
| 4885 | + | |
| 4886 | + | |
| 4887 | + | |
| 4888 | + | |
| 4889 | + | |
| 4890 | + | |
| 4891 | + | |
| 4892 | + | |
| 4893 | + | |
| 4894 | + | |
| 4895 | + | |
| 4896 | + | |
| 4897 | + | |
| 4898 | + | |
| 4899 | + | |
| 4900 | + | |
| 4901 | + | |
| 4902 | + | |
| 4903 | + | |
4885 | 4904 |
| |
4886 | 4905 |
| |
4887 | 4906 |
| |
|
Lines changed: 21 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
237 | 237 |
| |
238 | 238 |
| |
239 | 239 |
| |
| 240 | + | |
| 241 | + | |
| 242 | + | |
240 | 243 |
| |
241 |
| - | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
242 | 252 |
| |
243 |
| - | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
244 | 260 |
| |
245 | 261 |
| |
246 | 262 |
| |
| |||
254 | 270 |
| |
255 | 271 |
| |
256 | 272 |
| |
257 |
| - | |
| 273 | + | |
258 | 274 |
| |
259 | 275 |
| |
260 | 276 |
| |
261 |
| - | |
| 277 | + | |
262 | 278 |
| |
263 | 279 |
| |
264 | 280 |
| |
| |||
308 | 324 |
| |
309 | 325 |
| |
310 | 326 |
| |
311 |
| - | |
| 327 | + | |
312 | 328 |
| |
313 | 329 |
| |
314 | 330 |
| |
|
Lines changed: 20 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2753 | 2753 |
| |
2754 | 2754 |
| |
2755 | 2755 |
| |
2756 |
| - | |
| 2756 | + | |
2757 | 2757 |
| |
2758 | 2758 |
| |
2759 | 2759 |
| |
| |||
2870 | 2870 |
| |
2871 | 2871 |
| |
2872 | 2872 |
| |
2873 |
| - | |
| 2873 | + | |
2874 | 2874 |
| |
2875 | 2875 |
| |
2876 | 2876 |
| |
| |||
3153 | 3153 |
| |
3154 | 3154 |
| |
3155 | 3155 |
| |
| 3156 | + | |
3156 | 3157 |
| |
3157 | 3158 |
| |
3158 | 3159 |
| |
3159 | 3160 |
| |
| 3161 | + | |
3160 | 3162 |
| |
3161 |
| - | |
| 3163 | + | |
| 3164 | + | |
| 3165 | + | |
3162 | 3166 |
| |
3163 | 3167 |
| |
3164 | 3168 |
| |
| |||
3277 | 3281 |
| |
3278 | 3282 |
| |
3279 | 3283 |
| |
3280 |
| - | |
| 3284 | + | |
3281 | 3285 |
| |
3282 | 3286 |
| |
3283 | 3287 |
| |
| |||
3587 | 3591 |
| |
3588 | 3592 |
| |
3589 | 3593 |
| |
3590 |
| - | |
| 3594 | + | |
| 3595 | + | |
| 3596 | + | |
| 3597 | + | |
3591 | 3598 |
| |
3592 | 3599 |
| |
3593 | 3600 |
| |
| |||
3601 | 3608 |
| |
3602 | 3609 |
| |
3603 | 3610 |
| |
3604 |
| - | |
| 3611 | + | |
3605 | 3612 |
| |
3606 | 3613 |
| |
3607 | 3614 |
| |
3608 |
| - | |
| 3615 | + | |
3609 | 3616 |
| |
3610 | 3617 |
| |
3611 |
| - | |
| 3618 | + | |
3612 | 3619 |
| |
3613 | 3620 |
| |
3614 |
| - | |
| 3621 | + | |
3615 | 3622 |
| |
3616 | 3623 |
| |
3617 |
| - | |
| 3624 | + | |
3618 | 3625 |
| |
3619 | 3626 |
| |
3620 |
| - | |
| 3627 | + | |
3621 | 3628 |
| |
3622 | 3629 |
| |
3623 |
| - | |
| 3630 | + | |
3624 | 3631 |
| |
3625 | 3632 |
| |
3626 |
| - | |
| 3633 | + | |
3627 | 3634 |
| |
3628 | 3635 |
| |
3629 | 3636 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
| 52 | + | |
52 | 53 |
| |
53 | 54 |
| |
54 | 55 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
824 | 824 |
| |
825 | 825 |
| |
826 | 826 |
| |
| 827 | + | |
827 | 828 |
| |
828 | 829 |
| |
829 | 830 |
| |
|
0 commit comments
Comments
(0)