What exactly happens if I set parameter "keepalives" to zero (keepalives=0)?
1. Does it mean that the Postgresql server will never terminate idle sessions?
2. Does it mean that Postgresql server will never terminate Postgresql sessions from closed Lazarus applications?
3. Does it mean that the Postgresql server will never terminate Postgresql sessions from client Lazarus application if network connection is broken?
keepalives=1
keepalives_idle=86400
keepalives_interval=10
keepalives_count=100
Line 1: activate "keepalives" (is also defaultvalue) on the CLIENT
Line 2: after 86400 seconds (24 hours) of "idle" on that TCP-CLIENT-Connection, send out a "Hey, i'm alive" to the Server
Line 3: if a "I'm alive"-Message has NOT been acknowledged by the Server back to the CLIENT, resend that message after 10 seconds
Line 4: if Line 3 fails a 100 times, that CLIENT-connection to the Server is considered dead
Have a guess on which side of the Client-server equation we are with that.....