Re: Invalid idle_in_transaction_session_timeout data type

From: Alex <cdalxndr(at)yahoo(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Tatsuo Ishii <ishii(at)sraoss(dot)co(dot)jp>, pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: Invalid idle_in_transaction_session_timeout data type
Date: 2021-03-11 21:34:31
Message-ID: eb11dc69fdccb.1f6615ec2e0de@yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-docs

The following changes would make docs clear:
work_mem (numeric with memory unit)
statement_timeout (numeric with time unit)
,where "numeric with memory unit" and "numeric with time unit" are links
that point to "https://www.postgresql.org/docs/current/config-setting.html"
Tom Lane wrote:
[ redirecting to pgsql-docs ]
Alex <cdalxndr(at)yahoo(dot)com <mailto:cdalxndr(at)yahoo(dot)com> > writes:
In my opinion, it would be more clear if "Numeric with Unit" would be
specified on that property documentation, so that I can search more about
what that means (eventually a link pointing to details).
I saw "(integer)" so I assumed `show idle_in_transaction_session_timeout `
will return an integer.
This complaint isn't totally without merit. I wonder whether there is
any value in listing a unit-ized GUC's default unit as part of the
type info, so that we'd have entries like
work_mem (integer, kilobytes)
statement_timeout (integer, milliseconds)
That'd both provide some concrete info about which unit applies,
and cue unwary users that there might be more to it than just a
number.
I'm not sure whether this could replace the existing boilerplate
phrases about "If this value is specified without units, it is taken
as kilobytes", but it's sure more compact.
regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2021-03-12 01:50:44 Re: Invalid idle_in_transaction_session_timeout data type
Previous Message Tom Lane 2021-03-11 18:03:40 Re: BUG #16920: Can't compile PostGIS with MingW64 against PostgreSQL 14 head

Browse pgsql-docs by date

  From Date Subject
Next Message Tom Lane 2021-03-12 01:50:44 Re: Invalid idle_in_transaction_session_timeout data type
Previous Message Tom Lane 2021-03-11 16:20:05 Re: Invalid idle_in_transaction_session_timeout data type