【问题标题】:Install pgAgent on AWS RDS for Postgres在 AWS RDS 上为 Postgres 安装 pgAgent
【发布时间】:2016-07-20 06:37:34
【问题描述】:

是否可以在 AWS RDS 中为 Postgres 启用/安装 pgAgent(作业调度程序)? 我环顾四周,在 AWS 文档上找不到任何东西。

【问题讨论】:

    标签: postgresql amazon-web-services aws-rds pgagent


    【解决方案1】:

    pgAgent 目前在 rds.extensions 列表中不可用,并且没有关于何时可用的 ETA。

    如果您想运行调度作业,例如运行 DML/DDL 语句,那么我建议将 shell 脚本(例如,使用 -c 标志调用“psql”来执行查询)与操作系统级别的调度程序(例如,crontab)在 Linux EC2 实例上。

    您可以通过以下命令查看当前支持的扩展:

    postgres=> show rds.extensions ;
                                                                                                                                                               btree_gin,btree_gist,chkpass,citext,cube,dblink,dict_int,dict_xsyn,earthdistance,fuzzystrmatch,hstore,intagg,intarray,ip4r,isn,ltree,pgcrypto,pgrowlocks,pgstattuple,pg_buffercache,pg_prewarm,pg_stat_statements,pg_trgm,plcoffee,plls,plpe
    rl,plpgsql,pltcl,plv8,postgis,postgis_tiger_geocoder,postgis_topology,postgres_fdw,sslinfo,tablefunc,test_parser,tsearch2,unaccent,uuid-ossp
    

    【讨论】:

    • 我明白了。我可能会使用 Lambda 和 cloud watch 来查询我的 RDS 实例并按时执行 Postgres 函数。我正在尝试安排一个 Postgres 函数每 1 分钟运行一次并更新一些表格和内容。感谢您的提醒。
    • 请标记我的答案正确,因为它回答了您的问题
    • 2022年这还是个限制吗?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-05-24
    • 1970-01-01
    • 2021-06-09
    • 2019-06-04
    • 2013-06-04
    相关资源
    最近更新 更多