pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Second try at fixing tcp_keepalives_idle option on Solaris.
6+ messages / 1 participants
[nested] [flat]

* pgsql: Second try at fixing tcp_keepalives_idle option on Solaris.
@ 2017-06-28 16:30  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2017-06-28 16:30 UTC (permalink / raw)
  To: pgsql-committers

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

Branch
------
REL9_3_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/cc154d9a0022102147ed85dc50766d95ee229bb1

Modified Files
--------------
doc/src/sgml/config.sgml          | 17 +++----
doc/src/sgml/libpq.sgml           | 19 ++++----
src/backend/libpq/pqcomm.c        | 98 ++++++++++++++++-----------------------
src/interfaces/libpq/fe-connect.c | 60 ++++++++++++------------
4 files changed, 88 insertions(+), 106 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Second try at fixing tcp_keepalives_idle option on Solaris.
@ 2017-06-28 16:30  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2017-06-28 16:30 UTC (permalink / raw)
  To: pgsql-committers

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

Branch
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/63f5db8ab7e7bebe22b45f7c9beadcb48b3e014c

Modified Files
--------------
doc/src/sgml/config.sgml          | 19 ++++----
doc/src/sgml/libpq.sgml           | 19 ++++----
src/backend/libpq/pqcomm.c        | 98 ++++++++++++++++-----------------------
src/interfaces/libpq/fe-connect.c | 60 ++++++++++++------------
4 files changed, 89 insertions(+), 107 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Second try at fixing tcp_keepalives_idle option on Solaris.
@ 2017-06-28 16:30  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2017-06-28 16:30 UTC (permalink / raw)
  To: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/99255d73c07c89b69be028a1a7b8027a78befed4

Modified Files
--------------
doc/src/sgml/config.sgml          | 19 ++++----
doc/src/sgml/libpq.sgml           | 19 ++++----
src/backend/libpq/pqcomm.c        | 94 +++++++++++++++------------------------
src/interfaces/libpq/fe-connect.c | 60 ++++++++++++-------------
4 files changed, 86 insertions(+), 106 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Second try at fixing tcp_keepalives_idle option on Solaris.
@ 2017-06-28 16:30  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2017-06-28 16:30 UTC (permalink / raw)
  To: pgsql-committers

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

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/43c67e32fb2920233e680af7a7e979ebb762c7e8

Modified Files
--------------
doc/src/sgml/config.sgml          | 19 ++++----
doc/src/sgml/libpq.sgml           | 19 ++++----
src/backend/libpq/pqcomm.c        | 94 +++++++++++++++------------------------
src/interfaces/libpq/fe-connect.c | 60 ++++++++++++-------------
4 files changed, 86 insertions(+), 106 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Second try at fixing tcp_keepalives_idle option on Solaris.
@ 2017-06-28 16:30  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2017-06-28 16:30 UTC (permalink / raw)
  To: pgsql-committers

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

Branch
------
REL9_2_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/5e7447132000911d604bd242fb93f1593b65d32b

Modified Files
--------------
doc/src/sgml/config.sgml          | 17 +++----
doc/src/sgml/libpq.sgml           | 19 ++++----
src/backend/libpq/pqcomm.c        | 98 ++++++++++++++++-----------------------
src/interfaces/libpq/fe-connect.c | 60 ++++++++++++------------
4 files changed, 88 insertions(+), 106 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Second try at fixing tcp_keepalives_idle option on Solaris.
@ 2017-06-28 16:30  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2017-06-28 16:30 UTC (permalink / raw)
  To: pgsql-committers

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

Branch
------
REL9_4_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/e97b7372bf94e20df41b73f81c53157d53826535

Modified Files
--------------
doc/src/sgml/config.sgml          | 19 ++++----
doc/src/sgml/libpq.sgml           | 19 ++++----
src/backend/libpq/pqcomm.c        | 98 ++++++++++++++++-----------------------
src/interfaces/libpq/fe-connect.c | 60 ++++++++++++------------
4 files changed, 89 insertions(+), 107 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2017-06-28 16:30 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-06-28 16:30 pgsql: Second try at fixing tcp_keepalives_idle option on Solaris. Tom Lane <tgl@sss.pgh.pa.us>
2017-06-28 16:30 pgsql: Second try at fixing tcp_keepalives_idle option on Solaris. Tom Lane <tgl@sss.pgh.pa.us>
2017-06-28 16:30 pgsql: Second try at fixing tcp_keepalives_idle option on Solaris. Tom Lane <tgl@sss.pgh.pa.us>
2017-06-28 16:30 pgsql: Second try at fixing tcp_keepalives_idle option on Solaris. Tom Lane <tgl@sss.pgh.pa.us>
2017-06-28 16:30 pgsql: Second try at fixing tcp_keepalives_idle option on Solaris. Tom Lane <tgl@sss.pgh.pa.us>
2017-06-28 16:30 pgsql: Second try at fixing tcp_keepalives_idle option on Solaris. Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox