Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eBntR-0001Wu-RK for pgsql-general@arkaria.postgresql.org; Mon, 06 Nov 2017 20:21:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1eBntR-0006E4-Cm for pgsql-general@arkaria.postgresql.org; Mon, 06 Nov 2017 20:21:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eBnqz-0007Hr-5u for pgsql-general@postgresql.org; Mon, 06 Nov 2017 20:18:41 +0000 Received: from mail-pf0-x235.google.com ([2607:f8b0:400e:c00::235]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1eBnqv-0006Pk-KD for pgsql-general@postgresql.org; Mon, 06 Nov 2017 20:18:40 +0000 Received: by mail-pf0-x235.google.com with SMTP id d28so8554378pfe.2 for ; Mon, 06 Nov 2017 12:18:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to; bh=mkAtn1kWS7RUnh1iZ0Sur1SIrREzdDCPFphb0r/wWJ4=; b=t+sWZC1bjvgOlXyFS2xLwKUNnqnVvNPy8wq3CJBPZsdoKTcBIpR1xERXK94PZAQv1/ HNccVQvPPHYGVhXmX72IInXDdGw1Kp7Jsf4Bj1Tm2WhWDE2yRnUtHBXEnGgoLunq+vwT Z7zzWnI0it/gQcdm72dbj4DpwN4R0m6EABMKpGmkNbVQ/tmBrnWZhFViYUvmtchhFcN8 GDsKh03ehYkHcgGdwU+p78S0gRtOpcEm1UTo7MIMGjbFcKxtSyYXhUctRIpRDkwbBuM7 MZEUeAHtndrEzzWBkfMaKjp2LS4q2lCAUWwh4xWME0Fu/8cu3pJmwgjwDQydVpxWsx9r 983w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to; bh=mkAtn1kWS7RUnh1iZ0Sur1SIrREzdDCPFphb0r/wWJ4=; b=FojySrxJuurVc+3r+YfjQ+vsxAwDLgbfA72voeDEZHgV6O/RK1fv1V1LQZBIbao89G HvWq5/JYX4IUz62ITo1qLMiC8LdgfambyoF8jEZnrtgTCAb5C6QPMMgFQO5pjSq+CR6w bXQwbptputuQbyqz6Z/dUcKy9tfK88isyoBCJLoJQeAjpifkjOZiVBEPJKofwaLpqMyp IujQGH5Ppdg+hX7JWYgnj+3UmGloRjmS51oS7UeDpDibda0pht/5pBul11VZievnvMpa OgKZAxq4Hgui2QTRfdWphyOEwBy44wOZ+yOPyiYV7CpQbmL8+dBowcKZr1ZxXfcs0+qw ayuw== X-Gm-Message-State: AMCzsaWZplyJQc36AW3HaoasL8BSimOjQXoN1DLWLyB5OZn2VtIUFpNL JgOHPNyieZMTKGdgZEqNN+s51Tvd X-Google-Smtp-Source: ABhQp+TYWTf3WJpgqQtHF19OVK9YwfIo74Rh8fy47fewf3ok6XmJkuewVPcAF27HCNsuoL80CIKfpg== X-Received: by 10.98.30.133 with SMTP id e127mr17883274pfe.137.1509999514966; Mon, 06 Nov 2017 12:18:34 -0800 (PST) Received: from [10.104.134.14] ([155.100.47.6]) by smtp.gmail.com with ESMTPSA id k3sm26982789pfc.44.2017.11.06.12.18.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Nov 2017 12:18:34 -0800 (PST) Subject: Re: idle in transaction, why To: "David G. Johnston" References: <4a365db4-8608-65c8-e3dc-23524f881bc3@gmail.com> Cc: "pgsql-general@postgresql.org" From: Rob Sargent Message-ID: Date: Mon, 6 Nov 2017 13:18:47 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------1117BDA0AD87655D30FBC899" List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org This is a multi-part message in MIME format. --------------1117BDA0AD87655D30FBC899 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 11/06/2017 01:09 PM, David G. Johnston wrote: > On Mon, Nov 6, 2017 at 12:32 PM, Rob Sargent >wrote: > > Using postgres 10-beta3 (hopefully 10.0 this week) on virtual > CentOS7 and this JDBC driver postgresql:42.1.4 > > > The postgresql.conf file has > > #idle_in_transaction_session_timeout = 0 # in > milliseconds, 0 is disabled > > > ​There are numerous places where default settings can be configured. > > https://www.postgresql.org/docs/10/static/config-setting.html > > You should probably login as your application user and do "show > idle_in_transaction_session_timeout" to see what a clean session has > for a value and then figure out from there where that value is coming > from. > > David J. > From logging in with the application role I get coon=> show idle_in_transaction_session_timeout; idle_in_transaction_session_timeout ------------------------------------- 0 (1 row) --------------1117BDA0AD87655D30FBC899 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
On 11/06/2017 01:09 PM, David G. Johnston wrote:
On Mon, Nov 6, 2017 at 12:32 PM, Rob Sargent <robjsargent@gmail.com> wrote:

Using postgres 10-beta3 (hopefully 10.0 this week) on virtual CentOS7 and this JDBC driver postgresql:42.1.4


The postgresql.conf file has

#idle_in_transaction_session_timeout = 0        # in milliseconds, 0 is disabled


​There are numerous places where default settings can be configured.


You should probably login as your application user and do "show idle_in_transaction_session_timeout" to see what a clean session has for a value and then figure out from there where that value is coming from.

David J.

From logging in with the application role I get
coon=> show idle_in_transaction_session_timeout;
 idle_in_transaction_session_timeout
-------------------------------------
 0
(1 row)

--------------1117BDA0AD87655D30FBC899--