pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <hlinnakangas@vmware.com>
To: Hiroshi Inoue <inoue@tpf.co.jp>
Cc: Barry Bell <Barry.Bell@hartehanks.com>
Cc: PG User <pguser1982@gmail.com>
Cc: Hiroshi Saito <hiroshi@winpg.jp>
Cc: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Cc: Pavel Raiskup <praiskup@redhat.com>
Subject: Re: support for keep alive option
Date: Wed, 08 Jan 2014 14:06:55 +0200
Message-ID: <52CD3F5F.7090309@vmware.com> (raw)
In-Reply-To: <52CD392D.80502@tpf.co.jp>
References: <CAB7tN8aQajh3=BRV_c5uChC3tZFcDmH_AMqrp1ysCBqtKkYVrw@mail.gmail.com>
	<2a73781f8438463fa97c80ce9783f7c1@BY2PR08MB281.namprd08.prod.outlook.com>
	<CAB7tN8bPUWg6ATqW5F5TCg+5O4ANsOYC6jyMKhhDuBR-JOBefA@mail.gmail.com>
	<CAB7tN8YQzb-ToQw1zNCuUZJQGLgsJLW01LXX1Z2AfNfrW5tBpA@mail.gmail.com>
	<69bb317d9eb844798f4a37d1e96c9455@BY2PR08MB281.namprd08.prod.outlook.com>
	<52CC9246.6070908@tpf.co.jp>
	<52CD186E.3040504@vmware.com>
	<52CD392D.80502@tpf.co.jp>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

On 01/08/2014 01:40 PM, Hiroshi Inoue wrote:
> (2014/01/08 18:20), Heikki Linnakangas wrote:
>> I don't think it should be enabled by default. It's common to expose
>> keepalive and other TCP settings as an option, like libpq does, but it's
>> not usually enabled by default, and it might be an unwelcome surprise to
>> some existing applications.
>>
>> In particular, if you have a dialup connection, you do *not* want an
>> idle connection to keep sending periodic keep-alives, because keeping
>> the connection open costs money. It's not as big a problem these days as
>> it used to be, but still.
>
> Libpq's keepalives option is on by default.

Oh, I didn't realize that.

> So currently psqlodbc's
> keepalive is enabled when libpq is used(in case ssl used etc) otherwise
> it is disabled.
> Though I am about to enable keepalive by default, I'm not sure which
>   should be the default.

I guess it would be best to enable it by default in psqlodbc as well, then.

- Heikki


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



view thread (12+ messages)  latest in thread

Message-ID: <52CD3F5F.7090309@vmware.com>
Permalink:  ../52CD3F5F.7090309@vmware.com/
Also on:    postgresql.org/message-id/52CD3F5F.7090309@vmware.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: hlinnakangas@vmware.com, inoue@tpf.co.jp, Barry.Bell@hartehanks.com, pguser1982@gmail.com, hiroshi@winpg.jp, praiskup@redhat.com
  Subject: Re: support for keep alive option
  In-Reply-To: <52CD3F5F.7090309@vmware.com>
  References: <CAB7tN8aQajh3=BRV_c5uChC3tZFcDmH_AMqrp1ysCBqtKkYVrw@mail.gmail.com> <2a73781f8438463fa97c80ce9783f7c1@BY2PR08MB281.namprd08.prod.outlook.com> <CAB7tN8bPUWg6ATqW5F5TCg+5O4ANsOYC6jyMKhhDuBR-JOBefA@mail.gmail.com> <CAB7tN8YQzb-ToQw1zNCuUZJQGLgsJLW01LXX1Z2AfNfrW5tBpA@mail.gmail.com> <69bb317d9eb844798f4a37d1e96c9455@BY2PR08MB281.namprd08.prod.outlook.com> <52CC9246.6070908@tpf.co.jp> <52CD186E.3040504@vmware.com> <52CD392D.80502@tpf.co.jp> <52CD3F5F.7090309@vmware.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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