aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/misc/postgresql.conf.sample
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-09-12 02:26:33 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-09-12 02:26:33 +0000
commitcc3bda37f704dffb641a19d17d447e0eeb1a6c6c (patch)
tree9144b085be25ef1a613cb4e1fb6cf494a73f0f29 /src/backend/utils/misc/postgresql.conf.sample
parentf7a5f90c464cc68d70255923a8bd5046e0baba37 (diff)
downloadpostgresql-cc3bda37f704dffb641a19d17d447e0eeb1a6c6c.tar.gz
postgresql-cc3bda37f704dffb641a19d17d447e0eeb1a6c6c.zip
Tweak TCP-keepalive code so that an invalid setting doesn't cause us
to drop connections unceremoniously. Also some other marginal cleanups: don't query getsockopt() repeatedly if it fails, and avoid having the apparent definition of struct Port depend on which system headers you might have included or not. Oliver Jowett and Tom Lane.
Diffstat (limited to 'src/backend/utils/misc/postgresql.conf.sample')
-rw-r--r--src/backend/utils/misc/postgresql.conf.sample14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/backend/utils/misc/postgresql.conf.sample b/src/backend/utils/misc/postgresql.conf.sample
index 509035ce3bf..44179f72f86 100644
--- a/src/backend/utils/misc/postgresql.conf.sample
+++ b/src/backend/utils/misc/postgresql.conf.sample
@@ -75,12 +75,14 @@
# - TCP Keepalives -
# see 'man 7 tcp' for details
-#tcp_keepalives_idle = 0 # TCP_KEEPIDLE, in secs; 0 uses the
- # system default
-#tcp_keepalives_interval = 0 # TCP_KEEPINTVL, in seconds; 0 uses the
- # system default
-#tcp_keepalives_count = 0 # TCP_KEEPCNT, in seconds; 0 uses the
- # system default
+
+#tcp_keepalives_idle = 0 # TCP_KEEPIDLE, in seconds;
+ # 0 selects the system default
+#tcp_keepalives_interval = 0 # TCP_KEEPINTVL, in seconds;
+ # 0 selects the system default
+#tcp_keepalives_count = 0 # TCP_KEEPCNT;
+ # 0 selects the system default
+
#---------------------------------------------------------------------------
# RESOURCE USAGE (except WAL)