- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit681690f
committed
Fix elog.c to avoid infinite recursion (leading to backend crash) when
log_min_error_statement is active and there is some problem in logging thecurrent query string; for example, that it's too long to include in the logmessage without running out of memory. This problem has existed since thelog_min_error_statement feature was introduced. No doubt the reason itwasn't detected long ago is that 8.2 is the first release that defaultslog_min_error_statement to less than PANIC level.Per report from Bill Moran.1 parentc556447 commit681690f
1 file changed
+11
-6
lines changedLines changed: 11 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
429 | 429 |
| |
430 | 430 |
| |
431 | 431 |
| |
432 |
| - | |
433 |
| - | |
434 |
| - | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
435 | 435 |
| |
| 436 | + | |
| 437 | + | |
| 438 | + | |
436 | 439 |
| |
437 |
| - | |
438 |
| - | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
439 | 444 |
| |
440 | 445 |
| |
441 | 446 |
| |
|
0 commit comments
Comments
(0)