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 1thLhe-001NUK-Ut for pgsql-general@arkaria.postgresql.org; Mon, 10 Feb 2025 04:47:26 +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 1thLhd-0022jy-Ge for pgsql-general@arkaria.postgresql.org; Mon, 10 Feb 2025 04:47:25 +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 1thLhd-0022jp-5k for pgsql-general@lists.postgresql.org; Mon, 10 Feb 2025 04:47:25 +0000 Received: from mail-oa1-x2b.google.com ([2001:4860:4864:20::2b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1thLha-004saZ-2C for pgsql-general@lists.postgresql.org; Mon, 10 Feb 2025 04:47:24 +0000 Received: by mail-oa1-x2b.google.com with SMTP id 586e51a60fabf-2b2b6019a74so2217985fac.0 for ; Sun, 09 Feb 2025 20:47:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739162841; x=1739767641; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=56KxNOvhzYt2M6kC00JG2MD/a19ZN7C9jiTKIBeB8Bo=; b=TQccg5Dke0M01Jo1zkj7YGhXije/6TGwIAvMSMf0vbsLAwPH39ef92iGm2J6Op9LCD Rao5yuSYeu4QDSS88Dzp/ssZAnlDfH9u85wEmTZj1HjQqSmXmEP9U8RegV9no9jCB/c+ iXBLOqn9TIsW61mDIdD9LcPlffOcMsj8rGiGEcuFk/ambeG3sQixkQNLTl+WjSpSgsRJ kaotELHVhxqRPKCJEt8FlBNYpY9LQHsY9R2ycM3XdVmL8NYkEE0Skg62ny9VkwK/89pf teh246OLG0CCBuesUyYEAh7UDyUgpVIULzWfcxALiX1J5ZhcnID2ZVR0iHJAhjhro8Ym 4TBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739162841; x=1739767641; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=56KxNOvhzYt2M6kC00JG2MD/a19ZN7C9jiTKIBeB8Bo=; b=g3vCE1je0mc3QRqFK/iPWZbw/KEsj/IwlBmlJmylXSvTFAvRmsFmQ3zHfp28fegfq7 gon2JHj2puccKeEVqqIe4B10b/sHXcr8DnzNarwNQtS8TWshVRJPI9M4eemH0PRD8ZDJ kuH79WNu8ssWILOAqRN8BHGns7ejydF0jHb72WeyyevMRIhTrOSk7vGivDZF8hDnQ7tu PF1Wto2/lvnd0wyICj+FlYlZQzD60GnbCLT/wUVpNyVumwocLvtfWzFgiMA/Z9d8tlDR 3eNWTwpLpzGINeuYJ7qa4QyGcJ0MfN/b6SXjGI2PW1Ce0f/XRtj1/vKQrudL4kZii202 bGgQ== X-Gm-Message-State: AOJu0YxdtkffUpszZlp8jE3+f+HOcTDU1FpRQodo76AucP0QaVZno5X5 B/q8dnDlGJLSLDJZolMjRBPpJ+nxApj5vWiy9li3lNvERemJwzgE3S20RJH39JhvduQ47yfdaHY GbxAn5aSgB5XhaRwsgDbWV0bJJOQ= X-Gm-Gg: ASbGnctlk7XtAIOrHl8L3dx9yldJMkUgV0e9/eiIMLYnxbvd84zMnxfcb24epv7PrMI tBT2tQ3ChHIUl7yasQG6Xc4t1Ky4OBPvrv3tj9INRShDTcWTaBG9uk5+Fb978hEIX2Vkjr7c= X-Google-Smtp-Source: AGHT+IFWeD16zXhLorbol2Yu+ofnks5lYBpz2M5qZyp3GczVn8GqbvVflIP9S5tyXIj+THN8XnbJhyygKhRFhJoajKU= X-Received: by 2002:a05:6871:70e:b0:29f:b7f1:d844 with SMTP id 586e51a60fabf-2b83eb6727cmr8341112fac.2.1739162841129; Sun, 09 Feb 2025 20:47:21 -0800 (PST) MIME-Version: 1.0 Received: by 2002:ac9:5890:0:b0:587:17f7:65da with HTTP; Sun, 9 Feb 2025 20:47:20 -0800 (PST) In-Reply-To: References: From: "David G. Johnston" Date: Sun, 9 Feb 2025 21:47:20 -0700 X-Gm-Features: AWEUYZkmPkapD0CIZ8KA_AJVHhIk_jLk1u4oIZ-qHv11dzgRhQ94N37ynfI7VkA Message-ID: Subject: Re: PG-15.6: timeout parameters erroring out To: Mukesh Tanuku Cc: "pgsql-general@lists.postgresql.org" Content-Type: multipart/alternative; boundary="0000000000005a2c39062dc267aa" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000005a2c39062dc267aa Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sunday, February 9, 2025, Mukesh Tanuku wrote: > > > > *idle_in_transaction_session_timeout =3D '1min'idle_session_timeout =3D '= 5min'* > I suspect our docs may need an update. They say you may include white space before the unit; it probably needs to be changed to =E2=80=9Cmust=E2= =80=9D. I believe we=E2=80=99ve recently tightened up the parsing of literals in this= area. > > other way also, like below > > *idle_in_transaction_session_timeout =3D 60000idle_session_timeout =3D 30= 0000* > If those give error messages regarding trailing junk something else must be going on. > > we see these errors reporting in the logs after we enabled those paramete= rs > *log:* > 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 =3D 1min > 2025-02-10 04:17:19.845 GMT [2467575] ERROR: trailing junk after numeric > literal at or near "1m" at character 43 > 2025-02-10 04:17:19.845 GMT [2467575] STATEMENT: SET > idle_in_transaction_session_timeout =3D 1min > ... > David J. --0000000000005a2c39062dc267aa Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sunday, February 9, 2025, Mukesh Tanuku <mukesh.postgres@gmail.com> wrote:

idle_in_transactio= n_session_timeout =3D '1min'
idle_session_timeout =3D '= 5min'


I suspect our docs may need an update.=C2=A0 They say you may incl= ude white space before the unit; it probably needs to be changed to =E2=80= =9Cmust=E2=80=9D.=C2=A0 I believe we=E2=80=99ve recently tightened up the p= arsing of literals in this area.

=C2=A0

other way also, like below=C2=A0
idle_in_transaction_= session_timeout =3D 60000
idle_session_timeout =3D 300000

If those give = error messages regarding trailing junk something else must be going on.
=C2=A0
=

we see these errors reporting in the l= ogs after we enabled those parameters
log:
2025-= 02-10 04:17:19.156 GMT [2467573] ERROR: =C2=A0trailing junk after numeric l= iteral at or near "1m" at character 43
2025-02-10 04:17:19.156= GMT [2467573] STATEMENT: =C2=A0SET idle_in_transaction_session_timeou= t =3D 1min
2025-02-10 04:17:19.845 GMT [2467575] ERROR: =C2=A0trailing j= unk after numeric literal at or near "1m" at character 43
2025= -02-10 04:17:19.845 GMT [2467575] STATEMENT: =C2=A0SET idle_in_transaction_= session_timeout =3D 1min
...

David J.
=C2=A0
--0000000000005a2c39062dc267aa--