aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/funcs.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2017-06-28 12:30:16 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2017-06-28 12:30:16 -0400
commite97b7372bf94e20df41b73f81c53157d53826535 (patch)
treea88ef4103f658f260f27ffc3262c3c7afa646516 /src/tutorial/funcs.c
parentc2cb606a2ead48421398737b50614a356c3419f1 (diff)
downloadpostgresql-e97b7372bf94e20df41b73f81c53157d53826535.tar.gz
postgresql-e97b7372bf94e20df41b73f81c53157d53826535.zip
Second try at fixing tcp_keepalives_idle option on Solaris.
Buildfarm evidence shows that TCP_KEEPALIVE_THRESHOLD doesn't exist after all on Solaris < 11. This means we need to take positive action to prevent the TCP_KEEPALIVE code path from being taken on that platform. I've chosen to limit it with "&& defined(__darwin__)", since it's unclear that anyone else would follow Apple's precedent of spelling the symbol that way. Also, follow a suggestion from Michael Paquier of eliminating code duplication by defining a couple of intermediate symbols for the socket option. In passing, make some effort to reduce the number of translatable messages by replacing "setsockopt(foo) failed" with "setsockopt(%s) failed", etc, throughout the affected files. And update relevant documentation so that it doesn't claim to provide an exhaustive list of the possible socket option names. Like the previous commit (f0256c774), back-patch to all supported branches. Discussion: https://postgr.es/m/20170627163757.25161.528@wrigleys.postgresql.org
Diffstat (limited to 'src/tutorial/funcs.c')
0 files changed, 0 insertions, 0 deletions