【问题标题】:How to install pgAgent in greenplum DB?如何在 greenplum DB 中安装 pgAgent?
【发布时间】:2018-07-17 22:09:06
【问题描述】:

我正在尝试安装 pgAgent。我已经安装了greenplum。没有单独安装 postgres。我正在使用 pgAdmin3。我已经下载了pgagent3.4.0。 当我在 Windows 中运行这个 pgagent.sql 文件时,它会重定向到 pgAdmin3 以安装 pgAgent 模式。但我收到以下错误:-

>>NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "pga_jobagent_pkey" for table "pga_jobagent"
NOTICE:  CREATE TABLE will create implicit sequence "pga_jobclass_jclid_seq" for serial column "pga_jobclass.jclid"
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "pga_jobclass_pkey" for table "pga_jobclass"


>>ERROR:  UNIQUE index must contain all columns in the distribution key of relation "pga_jobclass"
********** Error **********

>>ERROR: UNIQUE index must contain all columns in the distribution key of relation "pga_jobclass"
SQL state: 42P16

另外,我在安装 Greenplum 的 unix 服务器中没有 pgagent 扩展。

在这种类型的环境设置中如何相应地工作?

-- 一个小问题,即使安装了greenplum DB来执行这样的pgagent活动,也需要单独安装postgres??

【问题讨论】:

    标签: greenplum pgagent


    【解决方案1】:

    Greenplum 不支持 pgAgent。大多数逻辑由 Greenplum 不支持的触发器处理。如果你想使用 pgAgent,你应该使用 PostgreSQL。

    【讨论】:

    • 正如 Jon 所指出的,Greenplum 不支持 pgAgent。你的用例到底是什么?也许还有另一种方法可以解决这个问题。
    • 你能建议我这样的方式吗?
    • 您可以使用 cron,或者如果您真的需要/想要使用 pgAgent,您可以使用专用的 PostgreSQL 实例。您也可以在 PostgreSQL 中使用 dblink 在 Greenplum 中执行 ETL 命令。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-06-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多