Re: PG-15.6: timeout parameters erroring out

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Mukesh Tanuku <mukesh(dot)postgres(at)gmail(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: PG-15.6: timeout parameters erroring out
Date: 2025-02-10 05:02:13
Message-ID: 2106557.1739163733@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Mukesh Tanuku <mukesh(dot)postgres(at)gmail(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2025-02-10 05:08:52 Re: PG-15.6: timeout parameters erroring out
Previous Message David Rowley 2025-02-10 04:54:06 Re: PG-15.6: timeout parameters erroring out