在 JetBrains IDE 中为 AWS Redshift 配置数据库驱动程序

Configuring the database driver for AWS Redshift in JetBrains IDEs

AWS Redshift 有一个 PostgreSQL 查询接口。因此,我尝试在 PyCharm 中使用 PostgreSQL 驱动程序 驱动程序建立与集群的连接(JetBrain IDE家庭):它有效,但有一项后台工作一直失败。错误信息是:

AWSmytestdb.pg_catalog.padb_config_harvest
java.sql.SQLException: Unable to determine a value for MaxIndexKeys due to missing system catalog data.

AWS Redshift 是否为 MaxIndexKeys 设置了一个值?这有关系吗?我可以关闭工作吗?有更好的解决方案吗?谢谢

一年多以来我一直收到此错误,它从未影响 Intellij IDEA 中的任何 Redshift/SQL 功能(与 PyCharm 相同的产品系列)

您可以尝试使用亚马逊提供的jdbc驱动程序。 在此 post 中,我描述了如何在 DataGrip(也是 Jetbrains)中安装和使用它。

您可以使用本机 Redshift 驱动程序而不是 Postgres 配置连接。 它确实帮助我更新了 PyCharm.

中的架构元数据
  1. 下载驱动.jar文件(在撰写本文时为RedshiftJDBC42-1.2.1.1001.jar: http://docs.aws.amazon.com/redshift/latest/mgmt/configure-jdbc-connection.html#download-jdbc-driver)

  2. 在 PYCharm/Intellij 中配置新的数据库驱动程序:

  3. 使用新的驱动程序配置新的数据库连接: