- Notifications
You must be signed in to change notification settings - Fork5.2k
Commit37c76ae
committed
Change unit of idle_replication_slot_timeout to seconds.
Previously, the idle_replication_slot_timeout parameter used minutesas its unit, based on the assumption that values would typically exceedone minute in production environments. However, this caused unexpectedbehavior: specifying a value below 30 seconds would round down to 0,effectively disabling the timeout. This could be surprising to users.To allow finer-grained control and avoid such confusion, this commit changesthe unit of idle_replication_slot_timeout to seconds. Larger values canstill be specified easily using standard time suffixes, for example,'24h' for 24 hours.Back-patch to v18 where idle_replication_slot_timeout was added.Reported-by: Gunnar Morling <gunnar.morling@googlemail.com>Author: Fujii Masao <masao.fujii@gmail.com>Reviewed-by: Laurenz Albe <laurenz.albe@cybertec.at>Reviewed-by: David G. Johnston <david.g.johnston@gmail.com>Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>Reviewed-by: Hayato Kuroda <kuroda.hayato@fujitsu.com>Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>Discussion:https://postgr.es/m/CADGJaX_0+FTguWpNSpgVWYQP_7MhoO0D8=cp4XozSQgaZ40Odw@mail.gmail.comBackpatch-through: 181 parent39f0108 commit37c76ae
File tree
5 files changed
+15
-18
lines changed- doc/src/sgml
- src
- backend
- replication
- utils/misc
- include/replication
5 files changed
+15
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4620 | 4620 | | |
4621 | 4621 | | |
4622 | 4622 | | |
4623 | | - | |
| 4623 | + | |
4624 | 4624 | | |
4625 | 4625 | | |
4626 | 4626 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| |||
1612 | 1612 | | |
1613 | 1613 | | |
1614 | 1614 | | |
1615 | | - | |
1616 | | - | |
1617 | | - | |
1618 | 1615 | | |
1619 | | - | |
1620 | | - | |
1621 | | - | |
| 1616 | + | |
| 1617 | + | |
| 1618 | + | |
1622 | 1619 | | |
1623 | 1620 | | |
1624 | 1621 | | |
| |||
1656 | 1653 | | |
1657 | 1654 | | |
1658 | 1655 | | |
1659 | | - | |
| 1656 | + | |
1660 | 1657 | | |
1661 | 1658 | | |
1662 | 1659 | | |
| |||
1717 | 1714 | | |
1718 | 1715 | | |
1719 | 1716 | | |
1720 | | - | |
1721 | | - | |
1722 | | - | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
1723 | 1720 | | |
1724 | 1721 | | |
1725 | 1722 | | |
| |||
1734 | 1731 | | |
1735 | 1732 | | |
1736 | 1733 | | |
1737 | | - | |
| 1734 | + | |
1738 | 1735 | | |
1739 | 1736 | | |
1740 | 1737 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3100 | 3100 | | |
3101 | 3101 | | |
3102 | 3102 | | |
3103 | | - | |
| 3103 | + | |
3104 | 3104 | | |
3105 | | - | |
3106 | | - | |
| 3105 | + | |
| 3106 | + | |
3107 | 3107 | | |
3108 | 3108 | | |
3109 | 3109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
345 | | - | |
| 345 | + | |
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | | - | |
| 269 | + | |
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| |||
0 commit comments
Comments
(0)