- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit6286efb
committed
Lower error level from PANIC to FATAL when restoring slots at startup
When restoring slot information from disk at startup and filling inshared memory information, the startup process would issue a PANICmessage if more slots are found than what max_replication_slots allows,and then Postgres generates a core dump, recommending to increasemax_replication_slots. This gives users a switch to crash Postgres atwill by creating slots, lower the configuration to not support it, andthen restart it.Making Postgres crash hard in this case is overdoing it just to give arecommendation to users. So instead use a FATAL, which makes Postgresfail to start without crashing, still giving the recommendation. Thisis more consistent with what happens for prepared transactions forexample.Author: Michael PaquierReviewed-by: Andres FreundDiscussion:https://postgr.es/m/20181030025109.GD1644@paquier.xyz1 parent96b00c4 commit6286efb
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1563 | 1563 |
| |
1564 | 1564 |
| |
1565 | 1565 |
| |
1566 |
| - | |
| 1566 | + | |
1567 | 1567 |
| |
1568 | 1568 |
| |
1569 | 1569 |
|
0 commit comments
Comments
(0)