forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitfbeb9da
committed
Improve error reporting for problems in text search configuration files
by installing an error context subroutine that will provide the file nameand line number for all errors detected while reading a config file.Some of the reader routines were already doing that in an ad-hoc way forerrors detected directly in the reader, but it didn't help for problemsdetected in subroutines, such as encoding violations.Back-patch to 8.3 because 8.3 is where people will be trying to debugconfiguration files.1 parent9de09c0 commitfbeb9da
File tree
7 files changed
+183
-103
lines changed- contrib/dict_xsyn
- src
- backend/tsearch
- include/tsearch
7 files changed
+183
-103
lines changedLines changed: 5 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 |
| - | |
| 9 | + | |
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
| |||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
19 |
| - | |
20 | 19 |
| |
21 | 20 |
| |
22 | 21 |
| |
| |||
75 | 74 |
| |
76 | 75 |
| |
77 | 76 |
| |
78 |
| - | |
| 77 | + | |
79 | 78 |
| |
80 | 79 |
| |
81 | 80 |
| |
82 |
| - | |
| 81 | + | |
83 | 82 |
| |
84 | 83 |
| |
85 | 84 |
| |
86 | 85 |
| |
87 | 86 |
| |
88 |
| - | |
| 87 | + | |
89 | 88 |
| |
90 | 89 |
| |
91 | 90 |
| |
| |||
119 | 118 |
| |
120 | 119 |
| |
121 | 120 |
| |
122 |
| - | |
| 121 | + | |
123 | 122 |
| |
124 | 123 |
| |
125 | 124 |
| |
|
Lines changed: 5 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
17 |
| - | |
18 | 17 |
| |
19 | 18 |
| |
20 | 19 |
| |
| |||
79 | 78 |
| |
80 | 79 |
| |
81 | 80 |
| |
82 |
| - | |
| 81 | + | |
83 | 82 |
| |
84 | 83 |
| |
85 | 84 |
| |
| |||
108 | 107 |
| |
109 | 108 |
| |
110 | 109 |
| |
111 |
| - | |
| 110 | + | |
112 | 111 |
| |
113 | 112 |
| |
114 | 113 |
| |
115 | 114 |
| |
116 | 115 |
| |
117 | 116 |
| |
118 | 117 |
| |
119 |
| - | |
| 118 | + | |
120 | 119 |
| |
121 | 120 |
| |
122 | 121 |
| |
| |||
175 | 174 |
| |
176 | 175 |
| |
177 | 176 |
| |
178 |
| - | |
| 177 | + | |
179 | 178 |
| |
180 | 179 |
| |
181 | 180 |
| |
|
Lines changed: 9 additions & 24 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 |
| - | |
19 | 18 |
| |
20 | 19 |
| |
21 | 20 |
| |
| |||
169 | 168 |
| |
170 | 169 |
| |
171 | 170 |
| |
172 |
| - | |
173 |
| - | |
| 171 | + | |
174 | 172 |
| |
175 | 173 |
| |
176 | 174 |
| |
177 | 175 |
| |
178 | 176 |
| |
179 |
| - | |
180 |
| - | |
| 177 | + | |
181 | 178 |
| |
182 | 179 |
| |
183 | 180 |
| |
184 | 181 |
| |
185 | 182 |
| |
186 |
| - | |
| 183 | + | |
187 | 184 |
| |
188 | 185 |
| |
189 | 186 |
| |
190 | 187 |
| |
191 | 188 |
| |
192 | 189 |
| |
193 | 190 |
| |
194 |
| - | |
195 |
| - | |
196 | 191 |
| |
197 | 192 |
| |
198 | 193 |
| |
| |||
213 | 208 |
| |
214 | 209 |
| |
215 | 210 |
| |
216 |
| - | |
217 |
| - | |
218 | 211 |
| |
219 | 212 |
| |
220 |
| - | |
221 |
| - | |
222 |
| - | |
| 213 | + | |
223 | 214 |
| |
224 | 215 |
| |
225 | 216 |
| |
| |||
269 | 260 |
| |
270 | 261 |
| |
271 | 262 |
| |
272 |
| - | |
273 |
| - | |
| 263 | + | |
274 | 264 |
| |
275 | 265 |
| |
276 | 266 |
| |
| |||
286 | 276 |
| |
287 | 277 |
| |
288 | 278 |
| |
289 |
| - | |
290 |
| - | |
| 279 | + | |
291 | 280 |
| |
292 | 281 |
| |
293 | 282 |
| |
294 | 283 |
| |
295 | 284 |
| |
296 | 285 |
| |
297 |
| - | |
298 |
| - | |
299 | 286 |
| |
300 | 287 |
| |
301 |
| - | |
302 |
| - | |
303 |
| - | |
| 288 | + | |
304 | 289 |
| |
305 | 290 |
| |
306 | 291 |
| |
307 | 292 |
| |
308 | 293 |
| |
309 | 294 |
| |
310 |
| - | |
| 295 | + | |
311 | 296 |
| |
312 | 297 |
| |
313 | 298 |
| |
|
0 commit comments
Comments
(0)