Re: BUG #15747: Help says 'application_name' property supports 64characters in a standard built but it's only 63 - Mailing list pgsql-bugs

From Tobias Gierke
Subject Re: BUG #15747: Help says 'application_name' property supports 64characters in a standard built but it's only 63
Date
Msg-id 65402b7b-b52d-3d4b-48b3-0979f92c5532@code-sourcery.de
Whole thread Raw
In response to Re: BUG #15747: Help says 'application_name' property supports 64 characters in a standard built but it's only 63  (Sergei Kornilov <sk@zsrv.org>)
List pgsql-bugs
Hi Sergei,


Of course you're right. Sorry for the noise.

Cheers,
Tobias
> Hi
>
>> According to
>> https://www.postgresql.org/docs/current/runtime-config-logging.html
>> 'application_name' can be up 64 characters long:
>>
>> "The application_name can be any string of less than NAMEDATALEN characters
>> (64 characters in a standard build)."
> Less than 64. Not "less or equals"
> Doc is correct,  application_name should be less than NAMEDATALEN, so maximun possible value is NAMEDATALEN - 1
characters(well, bytes)
 
>
> regards, Sergei



pgsql-bugs by date:

Previous
From: Daniel Gustafsson
Date:
Subject: Re: BUG #15726: parallel queries failed ERROR: invalid name syntaxCONTEXT: parallel worker
Next
From: Thomas Munro
Date:
Subject: Re: BUG #15726: parallel queries failed ERROR: invalid name syntaxCONTEXT: parallel worker