forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitfe415ff
committed
Make error logging in extended statistics more consistent
Most errors reported in extended statistics are internal issues, and soshould use elog(). The MCV list code was already following this rule, butthe functional dependencies and ndistinct coefficients were using a mixof elog() and ereport(). Fix this by changing most places to elog(), withthe exception of input functions.This is a mostly cosmetic change, it makes the life a little bit easierfor translators, as elog() messages are not translated. So backpatch toPostgreSQL 10, where extended statistics were introduced.Author: Tomas VondraBackpatch-through: 10 where extended statistics were addedDiscussion:https://postgr.es/m/20190503154404.GA7478@alvherre.pgsql1 parent56b7862 commitfe415ff
2 files changed
+8
-18
lines changedLines changed: 1 addition & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
534 | 534 |
| |
535 | 535 |
| |
536 | 536 |
| |
537 |
| - | |
538 |
| - | |
539 |
| - | |
| 537 | + | |
540 | 538 |
| |
541 | 539 |
| |
542 | 540 |
| |
|
Lines changed: 7 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
274 | 274 |
| |
275 | 275 |
| |
276 | 276 |
| |
277 |
| - | |
278 |
| - | |
279 |
| - | |
280 |
| - | |
| 277 | + | |
| 278 | + | |
281 | 279 |
| |
282 |
| - | |
283 |
| - | |
284 |
| - | |
285 |
| - | |
| 280 | + | |
| 281 | + | |
286 | 282 |
| |
287 |
| - | |
288 |
| - | |
289 |
| - | |
| 283 | + | |
290 | 284 |
| |
291 | 285 |
| |
292 | 286 |
| |
293 | 287 |
| |
294 |
| - | |
295 |
| - | |
296 |
| - | |
297 |
| - | |
| 288 | + | |
| 289 | + | |
298 | 290 |
| |
299 | 291 |
| |
300 | 292 |
| |
|
0 commit comments
Comments
(0)