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

From: Sergei Kornilov <sk(at)zsrv(dot)org>
To: "tobias(dot)gierke(at)code-sourcery(dot)de" <tobias(dot)gierke(at)code-sourcery(dot)de>, "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: BUG #15747: Help says 'application_name' property supports 64 characters in a standard built but it's only 63
Date: 2019-04-11 08:58:44
Message-ID: 4898911554973124@iva6-3ac3de5fcc31.qloud-c.yandex.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Daniel Gustafsson 2019-04-11 08:59:41 Re: BUG #15726: parallel queries failed ERROR: invalid name syntax CONTEXT: parallel worker
Previous Message r.zharkov 2019-04-11 08:55:58 Re: BUG #15727: PANIC: cannot abort transaction 295144144, it was already committed