Commit 9a374b7
committed
Improve frontend error logging style.
Get rid of the separate "FATAL" log level, as it was applied
so inconsistently as to be meaningless. This mostly involves
s/pg_log_fatal/pg_log_error/g.
Create a macro pg_fatal() to handle the common use-case of
pg_log_error() immediately followed by exit(1). Various
modules 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 a
frontend message, much as we have long had in the backend.
Except where rewording was needed to convert existing coding
to detail/hint style, I have (mostly) resisted the temptation
to change existing message wording.
Patch by me. Design and patch reviewed at various stages by
Robert Haas, Kyotaro Horiguchi, Peter Eisentraut and
Daniel Gustafsson.
Discussion: https://postgr.es/m/1363732.1636496441@sss.pgh.pa.us1 parent 5c431c7 commit 9a374b7
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 changed| 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 | | |
| |||
| 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