forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0e1275f
committed
Avoid using ambiguous word "non-negative" in error messages.
The error messages using the word "non-negative" are confusingbecause it's ambiguous about whether it accepts zero or not.This commit improves those error messages by replacing it withless ambiguous word like "greater than zero" or"greater than or equal to zero".Also this commit added the note about the word "non-negative" tothe error message style guide, to help writing the new error messages.When postgres_fdw option fetch_size was set to zero, previouslythe error message "fetch_size requires a non-negative integer value"was reported. This error message was outright buggy. Thereforeback-patch to all supported versions where such buggy error messagecould be thrown.Reported-by: Hou ZhijieAuthor: Bharath RupireddyReviewed-by: Kyotaro Horiguchi, Fujii MasaoDiscussion:https://postgr.es/m/OS0PR01MB5716415335A06B489F1B3A8194569@OS0PR01MB5716.jpnprd01.prod.outlook.com1 parent024515c commit0e1275f
File tree
6 files changed
+26
-13
lines changed- contrib/postgres_fdw
- doc/src/sgml
- src
- backend
- partitioning
- utils/adt
- test
- modules/test_shm_mq
- regress/expected
6 files changed
+26
-13
lines changedLines changed: 6 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
119 | 119 |
| |
120 | 120 |
| |
121 | 121 |
| |
122 |
| - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
123 | 126 |
| |
124 | 127 |
| |
125 | 128 |
| |
| |||
136 | 139 |
| |
137 | 140 |
| |
138 | 141 |
| |
139 |
| - | |
| 142 | + | |
140 | 143 |
| |
141 | 144 |
| |
142 | 145 |
| |
| |||
163 | 166 |
| |
164 | 167 |
| |
165 | 168 |
| |
166 |
| - | |
| 169 | + | |
167 | 170 |
| |
168 | 171 |
| |
169 | 172 |
| |
|
Lines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
828 | 828 |
| |
829 | 829 |
| |
830 | 830 |
| |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
831 | 841 |
| |
832 | 842 |
| |
833 | 843 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4760 | 4760 |
| |
4761 | 4761 |
| |
4762 | 4762 |
| |
4763 |
| - | |
| 4763 | + | |
4764 | 4764 |
| |
4765 | 4765 |
| |
4766 | 4766 |
| |
4767 |
| - | |
| 4767 | + | |
4768 | 4768 |
| |
4769 | 4769 |
| |
4770 | 4770 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
121 | 121 |
| |
122 | 122 |
| |
123 | 123 |
| |
124 |
| - | |
| 124 | + | |
125 | 125 |
| |
126 | 126 |
| |
127 | 127 |
| |
|
Lines changed: 5 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
57 | 57 |
| |
58 | 58 |
| |
59 | 59 |
| |
60 |
| - | |
| 60 | + | |
61 | 61 |
| |
62 | 62 |
| |
63 | 63 |
| |
64 | 64 |
| |
65 | 65 |
| |
66 | 66 |
| |
67 |
| - | |
| 67 | + | |
68 | 68 |
| |
69 | 69 |
| |
70 |
| - | |
| 70 | + | |
71 | 71 |
| |
72 | 72 |
| |
73 | 73 |
| |
| |||
149 | 149 |
| |
150 | 150 |
| |
151 | 151 |
| |
152 |
| - | |
| 152 | + | |
153 | 153 |
| |
154 | 154 |
| |
155 | 155 |
| |
| |||
158 | 158 |
| |
159 | 159 |
| |
160 | 160 |
| |
161 |
| - | |
| 161 | + | |
162 | 162 |
| |
163 | 163 |
| |
164 | 164 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 |
| - | |
| 22 | + | |
23 | 23 |
| |
24 | 24 |
| |
25 |
| - | |
| 25 | + | |
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
|
0 commit comments
Comments
(0)