forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9a374b7
committed
Improve frontend error logging style.
Get rid of the separate "FATAL" log level, as it was appliedso inconsistently as to be meaningless. This mostly involvess/pg_log_fatal/pg_log_error/g.Create a macro pg_fatal() to handle the common use-case ofpg_log_error() immediately followed by exit(1). Variousmodules had already invented either this or equivalent macros;standardize on pg_fatal() and apply it where possible.Invent the ability to add "detail" and "hint" messages to afrontend message, much as we have long had in the backend.Except where rewording was needed to convert existing codingto detail/hint style, I have (mostly) resisted the temptationto change existing message wording.Patch by me. Design and patch reviewed at various stages byRobert Haas, Kyotaro Horiguchi, Peter Eisentraut andDaniel Gustafsson.Discussion:https://postgr.es/m/1363732.1636496441@sss.pgh.pa.us1 parent5c431c7 commit9a374b7
File tree
77 files changed
+1367
-2395
lines changed- contrib
- oid2name
- vacuumlo
- src
- bin
- initdb
- pg_amcheck
- pg_archivecleanup
- pg_basebackup
- pg_checksums
- pg_controldata
- pg_ctl
- pg_dump
- t
- pg_resetwal
- pg_rewind
- t
- pg_test_fsync
- pg_upgrade
- pg_verifybackup
- t
- pg_waldump
- pgbench
- psql
- t
- scripts
- common
- fe_utils
- include
- common
- lib
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
77 files changed
+1367
-2395
lines changedLines changed: 10 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
182 | 182 |
| |
183 | 183 |
| |
184 | 184 |
| |
185 |
| - | |
| 185 | + | |
| 186 | + | |
186 | 187 |
| |
187 | 188 |
| |
188 | 189 |
| |
189 | 190 |
| |
190 | 191 |
| |
191 | 192 |
| |
192 |
| - | |
193 |
| - | |
194 |
| - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
195 | 196 |
| |
196 | 197 |
| |
197 | 198 |
| |
| |||
328 | 329 |
| |
329 | 330 |
| |
330 | 331 |
| |
331 |
| - | |
332 |
| - | |
333 |
| - | |
334 |
| - | |
335 |
| - | |
| 332 | + | |
| 333 | + | |
336 | 334 |
| |
337 | 335 |
| |
338 | 336 |
| |
| |||
359 | 357 |
| |
360 | 358 |
| |
361 | 359 |
| |
362 |
| - | |
| 360 | + | |
363 | 361 |
| |
364 | 362 |
| |
365 | 363 |
| |
| |||
390 | 388 |
| |
391 | 389 |
| |
392 | 390 |
| |
393 |
| - | |
| 391 | + | |
394 | 392 |
| |
395 | 393 |
| |
396 | 394 |
| |
397 |
| - | |
| 395 | + | |
398 | 396 |
| |
399 | 397 |
| |
400 | 398 |
| |
|
Lines changed: 5 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
492 | 492 |
| |
493 | 493 |
| |
494 | 494 |
| |
495 |
| - | |
496 |
| - | |
497 |
| - | |
498 | 495 |
| |
499 | 496 |
| |
500 | 497 |
| |
501 | 498 |
| |
502 | 499 |
| |
503 | 500 |
| |
504 |
| - | |
505 |
| - | |
506 |
| - | |
507 |
| - | |
| 501 | + | |
508 | 502 |
| |
509 | 503 |
| |
510 | 504 |
| |
| |||
513 | 507 |
| |
514 | 508 |
| |
515 | 509 |
| |
516 |
| - | |
517 |
| - | |
518 |
| - | |
519 |
| - | |
| 510 | + | |
520 | 511 |
| |
521 | 512 |
| |
522 | 513 |
| |
| |||
532 | 523 |
| |
533 | 524 |
| |
534 | 525 |
| |
535 |
| - | |
| 526 | + | |
| 527 | + | |
536 | 528 |
| |
537 | 529 |
| |
538 | 530 |
| |
| |||
541 | 533 |
| |
542 | 534 |
| |
543 | 535 |
| |
544 |
| - | |
| 536 | + | |
545 | 537 |
| |
546 | 538 |
| |
547 | 539 |
| |
|
0 commit comments
Comments
(0)