Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eBnyz-0002IU-8G for pgsql-general@arkaria.postgresql.org; Mon, 06 Nov 2017 20:26:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1eBnyy-00051r-RF for pgsql-general@arkaria.postgresql.org; Mon, 06 Nov 2017 20:26:56 +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 1eBnwW-0007za-U4 for pgsql-general@postgresql.org; Mon, 06 Nov 2017 20:24:24 +0000 Received: from mail-pg0-x22e.google.com ([2607:f8b0:400e:c05::22e]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1eBnwU-0006Zq-CV for pgsql-general@postgresql.org; Mon, 06 Nov 2017 20:24:24 +0000 Received: by mail-pg0-x22e.google.com with SMTP id o7so292421pgc.4 for ; Mon, 06 Nov 2017 12:24:21 -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:content-transfer-encoding; bh=cmj9nrDu+lBuQFzGikg8GzR5INWAatUP6Uqucvr4xaE=; b=oevs5IEUS1IvoGvSyKjhiFEs5NjLySjF8vqHLsIbYkAsXiJgWy4TiPD6wzK+vINX/F Q0HhPbkjdMmGwqqpbnbeQHbuKB1sF9jLcDUwul++Azm6TXaFEQmNZ9OjlLsfVNhMVfx7 yHlqN9Xmeyxs1iHv7Uua37IVRYCBhWzZC9JiEr7xXSW+ZxydwgTX0uF4HScUZkT7SGSc WNd0XcbD9kpGoeqNe+6hEz5+FTZcUPqTQUSkMjwKqn51hM2j6KmkHe0gZSf9d8FgoUWi tCmRyIwZT0BvRmyuv7pt2lGbfszTDz30MHuHuUEYyrNHQuU9rf5Go+A899WDVdizPE3L lwRA== 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:content-transfer-encoding; bh=cmj9nrDu+lBuQFzGikg8GzR5INWAatUP6Uqucvr4xaE=; b=d2nXTYseNu0OOpsg+jvaM2xP34/q4oETgks9WBxOEi4wPKkokC7sUEzf4CKLVpGo96 KZ2joZ6sUz5aav6uffsNTB5tTs5SS6HYnAHL7I5Ziq9rMt+EHK0j2HdJrG+L75JQzuWx 14PIO4q2SGkIHHybF/y/GOgfpjHpMaDQeHznpYd66tdXEpmQHAj1mY/ydOjcjh2Ou6az RY8U8IQCEKu/bNgROKu1SNKEw20rRcIIdiMwjKK4XsBFO6e6u1gXqqBW9S2L3/jTNURX V34GG6uosVt1iWIDg3AQcj45Xm0EoTSTxMa2++uikalVH/1oEPVoOvYqEJxCi+BJLdAa rb6A== X-Gm-Message-State: AMCzsaUBWtiIeV23W8e/ChyMpJP99KzpsvlSEh8wBbEMtCAF4O9sWpdE dPELaXvGzyoIZc5VEYN0VEyqzXpU X-Google-Smtp-Source: ABhQp+S9sDRrbvt+mFZbZGvEBw7+lz0VZ97BX/znIee9Cg5+UCog3nnSwyCJQtNBnRyV3ah2fsva2w== X-Received: by 10.84.214.136 with SMTP id j8mr16397753pli.422.1509999859858; Mon, 06 Nov 2017 12:24:19 -0800 (PST) Received: from [10.104.134.14] ([155.100.47.6]) by smtp.gmail.com with ESMTPSA id w20sm26167224pfi.89.2017.11.06.12.24.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Nov 2017 12:24:18 -0800 (PST) Subject: Re: idle in transaction, why To: Tom Lane , "David G. Johnston" References: <4a365db4-8608-65c8-e3dc-23524f881bc3@gmail.com> <16893.1509999467@sss.pgh.pa.us> Cc: "pgsql-general@postgresql.org" From: Rob Sargent Message-ID: <6ed9ca9b-fb80-e505-2522-be9b5f63a759@gmail.com> Date: Mon, 6 Nov 2017 13:24:32 -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: <16893.1509999467@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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 On 11/06/2017 01:17 PM, Tom Lane wrote: > "David G. Johnston" writes: >> 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. > You don't have to guess about the latter: the pg_settings view will tell > you exactly where the active value came from. See the source, sourcefile, > sourceline columns. > > regards, tom lane select name, setting, source, sourcefile, sourceline, extra_desc, context from pg_settings where name ~ 'idle'; name | setting | source | sourcefile | sourceline | extra_desc | context -------------------------------------+---------+---------+------------+------------+---------------------------------------+--------- idle_in_transaction_session_timeout | 0 | default | | | A value of 0 turns off the timeout. | user tcp_keepalives_idle | 7200 | default | | | A value of 0 uses the system default. | user (2 rows) -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general