Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jb39Y-0002qD-5j for pgsql-general@arkaria.postgresql.org; Tue, 19 May 2020 14:23:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jb39X-0006Hi-1m for pgsql-general@arkaria.postgresql.org; Tue, 19 May 2020 14:23:31 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jb39W-0006HX-M4 for pgsql-general@lists.postgresql.org; Tue, 19 May 2020 14:23:30 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jb39T-0007ka-LI for pgsql-general@postgresql.org; Tue, 19 May 2020 14:23:29 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 1D070891; Tue, 19 May 2020 10:23:25 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 19 May 2020 10:23:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=4 hNVMnkqnG9gZWhJ2DpKfPIQnPD2rKXSXSOwv0lDV1o=; b=JySf3wLv+4iKHYaWF ZMiOuuVuXzWLohieV2DBGr/wDFIsRg8FdCtsKBT1Ck07+Sjq4GtmQfQVleM9EW6z HPe2/oIr2S+vllFpuB/7psbrecgZSuQFACDZGCVB76+BsmjZZ8eiPCLI1zVYm7Bo lbOAEVKGuymXfM7FKwTPvzXqpiv25k5k6elvRBeJoyB8YGDdMTszvv9SlbGieRk9 KUI5UGIysVeXAGzTtnbvX++Bi7d6Yp/SAU77neYLBVDIFzQWvdW6v4WVU5lDtvdF FhiBB48TR5nz2Iwe2CDwCy5Y+W/kDrl04M1ymot1MhSh6NwfuCOIURkmkSjPSlfV 9dlpA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=4hNVMnkqnG9gZWhJ2DpKfPIQnPD2rKXSXSOwv0lDV 1o=; b=MFCnnbz46gfiffwnEtFwH9Jd0+aBeQF0qAJHGhCaQQknA0RwJjJl3EGS7 icWjVFL8eRSUwXBp6JCxY1MB41p944Eq6H2JdsCNEALTrZMHdFWYx6iLf2t+Lxyv R/4R3hoE5WJExwt21B/QhMYJnvey3DoNFvE3C5oYtaOUi7Y772r8yADtkzmuQ0nb pLkV0FWYm974dNOJwSdZedt0Spm8FxAmW4JMgNIggD37xHpbg33UTIDBWyk/uk5E Yj62iEm2YM3ISj73ZrBDcEUgVdTvcAQ2WkFo3ATKVXjt3Rp5oPNl5B+kB64PkQ/9 YL2rEJ3HMQbzxVanr4yCZWn+xyaSQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedruddtjedgjeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefheenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeeijeelieduueduveffffehgfdvuefgtdetkeefffel ffdvudeuleeiuefgheeujeenucffohhmrghinhepohhuthhlohhokhdrtghomhdprghmug hotghsrdgtohhmpdegtdgrmhguohgtshdrtghomhenucfkphepjeehrddujedvrdehrddv fedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg gurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: from [192.168.1.3] (75-172-5-231.tukw.qwest.net [75.172.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id D7E7E328005E; Tue, 19 May 2020 10:23:23 -0400 (EDT) Subject: Re: idle_in_transaction_session_timeout not getting log in PG v12.2 To: Ishan Joshi , "pgsql-general@postgresql.org" References: From: Adrian Klaver Message-ID: Date: Tue, 19 May 2020 07:23:23 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 5/19/20 7:12 AM, Ishan Joshi wrote: > Thank Adrian for response. > > Yes I have the same *.conf file as v11.5 in fact I have copied the same > conf files in v12.2 > > Logging parameter are as follows I'm not seeing anything obviously wrong with below. Are you sure you are looking at the correct log? > > *Parameter* > > > > *Values* > > log_autovacuum_min_duration > > > >  1s > >  log_checkpoints > > > >  on > >  log_connections > > > >  on > >  log_destination > > > >  stderr > >  log_directory > > > >  log > >  log_disconnections > > > >  on > >  log_duration > > > >  off > >  log_error_verbosity > > > >  default > >  log_executor_stats > > > >  off > >  log_file_mode > > > > 600 > > log_filename > > > >  postgresql-%Y-%m-%d_%H%M%S.log > > log_hostname > > > >  off > >  log_line_prefix > > > >  %m %d %u %l %s pid:%p xid:%x ip:%h > >  log_lock_waits > > > >  on > >  log_min_duration_statement > > > > -1 > > log_min_error_statement > > > >  error > >  log_min_messages > > > >  warning > >  log_parser_stats > > > >  off > >  log_planner_stats > > > >  off > >  log_replication_commands > > > >  on > >  log_rotation_age > > > >  1h > >  log_rotation_size > > > > 0 > > log_statement > > > >  none > >  log_statement_stats > > > >  off > >  log_temp_files > > > > 0 > > log_transaction_sample_rate > > > > 0 > > log_truncate_on_rotation > > > >  on > >  logging_collector > > > >  on > > Thanks & Regards, > > Ishan Joshi > > -----Original Message----- > From: Adrian Klaver > Sent: Tuesday, May 19, 2020 7:28 PM > To: Ishan Joshi ; pgsql-general@postgresql.org > Subject: Re: idle_in_transaction_session_timeout not getting log in PG v12.2 > > On 5/19/20 2:08 AM, Ishan Joshi wrote: > > > Hi Team, > > > > > > I have set idle_in_transaction_session_timeout on user level and it is > > > set for 5 min. I can see after 5 min the session with “idle in > > > transaction” state got killed and it log the details in postgresql log > > > file with “FATAL: terminating connection due to idle-in-transaction > > > timeout” in v11.5 > > > > > > But I have testing the same in v12.2, The session getting killed with > > > state “idle in transaction”  but the log is not generated in > > > postgresql log file. > > > > > > Is there any specific changes related to this for v12.2 or any > > > additional parameters need to set for generating logs. > > Looking at code in ~/backend/tcop/postgres.c it has not changed. > > Are you reusing the same *.conf in 12 as you did in 11? > > What are your logging settings? > > > > > > Thanks & Regards, > > > > > > Ishan Joshi > > > > > > *This email and the information contained herein is proprietary and > > > confidential and subject to the Amdocs Email Terms of Service, which > > > you may review > > > at**https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2F > > > > www.amdocs.com%2Fabout%2Femail-terms-of-service*&data=02%7C01%7CIs > > > > han.Joshi%40amdocs.com%7C7d8dce6a7c7d4349a7ec08d7fbfcccd5%7Cc8eca3ca12 > > > 7646d59d9da0f2a028920f%7C0%7C0%7C637254935514522274&sdata=Gi7j8rno > > > ogMRCpaAWM0UuH%2FzorFKy9vnpeEfNfu1dLo%3D&reserved=0 > > > > > -- > > Adrian Klaver > > adrian.klaver@aklaver.com > > *This email and the information contained herein is proprietary and > confidential and subject to the Amdocs Email Terms of Service, which you > may review at**https://www.amdocs.com/about/email-terms-of-service* > -- Adrian Klaver adrian.klaver@aklaver.com