类型: | string |
上下文: | user |
重新开始: | false |
application_name
可以是任意小于NAMEDATALEN
个字符(标准编译中是 64 个字符)的字符串。这通常由一个应用通过到服务器的连接设置。该名称将被显示在pg_stat_activity视图中并被包括在 CSV 日志项中。它也会被通过log_line_prefix包括在普通日志项中。只有可打印 ASCII 字符能被使用在application_name
之中。其他字符将被替换为问号(?
)。
建议 [EN]
Set this to a reasonable default for most user sessions; if in the middle of working over your application to support application names, this might be “unknown”.
在 StackOverflow
在 pgsql-hackers
- Re: [BUG FIX]Connection fails with whitespace after keepalives parameter value
- Re: [HACKERS] make async slave to wait for lsn to be replayed
- Re: [PATCH] pg_stat_activity: make slow/hanging authentication more visible
- Re: [EXTERNAL] Re: Add non-blocking version of PQcancel
- Re: Making error message more user-friendly with spaces in a URI