【问题标题】:postgresql.conf setting is ignored because it is defunctpostgresql.conf 设置被忽略,因为它已失效
【发布时间】:2021-02-08 17:33:37
【问题描述】:

我正在尝试将 2 个设置添加到我的 postgresql.conf 文件(在 CentOS Greenplum Postgres 9.4 实例上)并且我收到了这条消息:

log_destination"": setting is ignored because it is defunct
log_line_prefix"": setting is ignored because it is defunct

什么意思?

这是这些设置所在的部分:

# If the execution time of the query is longer than the specified time, log the query text and execution time in the log
log_min_duration_statement = 0
# Information to prefix to the log message
log_line_prefix = '%t [%p]: [%l-1] user=%u,db=%d,app=%a,client=%h'  # '%t %d %u %p %h '
log_checkpoints = on
# Log the client's connection
log_connections = on
# Log client disconnects
log_disconnections = on
#Leave lock wait longer than the time specified by # deadlock_timeout (default 1 second) in the log
log_lock_waits = on
# Leave logs that temporary files were created (all 0's)
log_temp_files = 0
# Log language is limited to English
lc_messages = 'C'
log_destination = 'csvlog'

【问题讨论】:

  • 我在 Postgres 9.4 的源代码中没有找到该错误消息,那么返回的是什么?你从哪里得到 Postgres?你在使用include 文件吗?
  • 这是 Amazon 上的 Greenplum 安装。我不确定我是否使用包含文件..
  • 您需要在问题和/或标签中包含该信息。 Greenplum 与社区 Postgres 不同。理解它的人,不是我,需要插话

标签: postgresql settings greenplum defunct postgresql.conf


【解决方案1】:

Greenplum 有自己的日志记录,不使用这两个设置。所有的日志记录都转到段上的主数据目录和段数据目录的主数据目录。这是预期行为,目前无法更改。

cd $MASTER_DATA_DIRECTY/pg_log/

在细分市场

cd /data/primary/gpseg*/pg_log/

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-12-23
    • 2020-07-19
    • 1970-01-01
    • 1970-01-01
    • 2019-08-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多