Re: [COMMITTERS] pgsql: Add GUC variables to control keep-alive - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [COMMITTERS] pgsql: Add GUC variables to control keep-alive
Date
Msg-id 25517.1122795047@sss.pgh.pa.us
Whole thread Raw
In response to Re: [COMMITTERS] pgsql: Add GUC variables to control keep-alive  (Oliver Jowett <oliver@opencloud.com>)
Responses Re: [COMMITTERS] pgsql: Add GUC variables to control keep-alive
List pgsql-hackers
Oliver Jowett <oliver@opencloud.com> writes:
> per my linux/socket.h:

>> /* Setsockoptions(2) level. Thanks to BSD these must match IPPROTO_xxx */
>> #define SOL_IP          0
>> /* #define SOL_ICMP     1       No-no-no! Due to Linux :-) we cannot use SOL_ICMP=1 */
>> #define SOL_TCP         6

> (I won't get into why using wire-level-protocol constants for syscall
> option numbering is a bad idea.. :)

[ raised eyebrow... ]  You think the wire protocol numbers are more
likely to change than the syscall assignments?  Consider the range of
systems that each change would affect.

Also, that assignment is not mere BSD-ism, it's specified by the Single
Unix Spec, as well as every other document I could lay my hands on
today.  Whoever wrote the comments in linux/socket.h is just
clueless.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Remote administration functionality
Next
From: "Dave Page"
Date:
Subject: Re: Remote administration functionality