Commit 5b380fb
authored
Set the default Connection Lifetime to one hour (#5662)
Connection Lifetime can also be used to limit memory growth of
PostgreSQL connection. Certain caches only grow over time, the most
common example is the cache for table metadata: the "relcache". For
systems with many tables (often times due to partitioning) this relcache
slowly grows larger and larger. By putting a 1 hour limit on a
connection lifetime such excessive growth is limited.
This same 1 hour limit is used for PgBouncer its equivalent
server_lifetime config option. (I'm the maintainer of PgBouncer)1 parent c86e5ef commit 5b380fb
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
777 | 777 | | |
778 | 778 | | |
779 | 779 | | |
780 | | - | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
781 | 784 | | |
782 | | - | |
| 785 | + | |
783 | 786 | | |
784 | 787 | | |
785 | 788 | | |
786 | 789 | | |
| 790 | + | |
787 | 791 | | |
788 | 792 | | |
789 | 793 | | |
| |||
0 commit comments