【问题标题】:Npgsql. unrecognized configuration parameter "ssl_renegotiation_limit"Npgsql。无法识别的配置参数“ssl_renegotiation_limit”
【发布时间】:2018-11-12 16:48:20
【问题描述】:

在尝试调试我的其他问题时遇到此错误(NpgsqlConnection hangs for hours on opening connection)。

当我在连接字符串中提供 Require 的 SSL 模式参数时,出现以下异常:Npgsql.PostgresException: 42704: unrecognized configuration parameter "ssl_renegotiation_limit"

在网上寻找可能的解决方案时,我发现这个线程是由 Npgsql nuget 包所有者创建的。从它的外观来看,这可能是一个问题,处于功能请求状态:https://forums.aws.amazon.com/thread.jspa?threadID=229990

【问题讨论】:

  • postgres 还是 redshift?请删除 1 个标签。

标签: c# amazon-redshift npgsql


【解决方案1】:

很难知道发生了什么,因为您没有包含有关 PostreSQL 版本的任何详细信息。但是,所有最新版本的 PostgreSQL 都识别(并忽略)ssl_renegotiation_limit。您使用的是非常旧版本的 PostgreSQL,或者可能是 Amazon Redshift,在这种情况下,您需要添加 Server Compatibility Mode=Redshift as specified in the Npgsql docs

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-03-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多