Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1thLw4-001Q3Y-69 for pgsql-general@arkaria.postgresql.org; Mon, 10 Feb 2025 05:02:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1thLw2-002HNS-Ru for pgsql-general@arkaria.postgresql.org; Mon, 10 Feb 2025 05:02:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1thLw2-002HLH-H4 for pgsql-general@lists.postgresql.org; Mon, 10 Feb 2025 05:02:18 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1thLvz-004siA-1r for pgsql-general@lists.postgresql.org; Mon, 10 Feb 2025 05:02:18 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 51A52DcJ2106558; Mon, 10 Feb 2025 00:02:13 -0500 From: Tom Lane To: Mukesh Tanuku cc: pgsql-general@lists.postgresql.org Subject: Re: PG-15.6: timeout parameters erroring out In-reply-to: References: Comments: In-reply-to Mukesh Tanuku message dated "Mon, 10 Feb 2025 10:04:17 +0530" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2106556.1739163733.1@sss.pgh.pa.us> Date: Mon, 10 Feb 2025 00:02:13 -0500 Message-ID: <2106557.1739163733@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Mukesh Tanuku writes: > We unabled the postgres timeout parameters in the postgresql.conf file > *idle_in_transaction_session_timeout = '1min'idle_session_timeout = '5min'* Did you actually run them together on one line like that? The normal thing is one setting per line. It might be that the config file parser will let you get away with just spaces rather than a newline between settings, but I'm not terribly surprised if it fails without any whitespace at all. However, since you showed us neither the exact config file contents nor the error message you got, this is all just speculation. > 2025-02-10 04:17:19.156 GMT [2467573] ERROR: trailing junk after numeric > literal at or near "1m" at character 43 > 2025-02-10 04:17:19.156 GMT [2467573] STATEMENT: SET > idle_in_transaction_session_timeout = 1min This case however is pretty clear: you need single quotes around the value '1min', and you didn't provide them. regards, tom lane