首页 > 解决方案 > 如何在 greenplum DB 中安装 pgAgent?

问题描述

我正在尝试安装 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?

标签: greenplumpgagent

解决方案


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


推荐阅读