Re: PG-15.6: timeout parameters erroring out - Mailing list pgsql-general

From Tom Lane
Subject Re: PG-15.6: timeout parameters erroring out
Date
Msg-id 2106557.1739163733@sss.pgh.pa.us
Whole thread Raw
In response to PG-15.6: timeout parameters erroring out  (Mukesh Tanuku <mukesh.postgres@gmail.com>)
Responses Re: PG-15.6: timeout parameters erroring out
List pgsql-general
Mukesh Tanuku <mukesh.postgres@gmail.com> 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



pgsql-general by date:

Previous
From: David Rowley
Date:
Subject: Re: PG-15.6: timeout parameters erroring out
Next
From: "David G. Johnston"
Date:
Subject: Re: PG-15.6: timeout parameters erroring out