Is it possible to enable/install pgAgent (job scheduler) for Postgres in AWS RDS? I looked around and couldn't find anything on AWS documentation.
pgAgent is a job scheduling agent for Postgres databases, capable of running multi-step batch or shell scripts and SQL tasks on complex schedules. pgAgent is distributed independently. You can download pgAgent from the download area of the pgAdmin website.
Amazon RDS for PostgreSQL currently supports PostgreSQL 9.6, 10, 11, 12, 13, and 14. Information about the supported minor versions is available in the Amazon RDS User Guide. Q: What are the extensions supported by RDS for PostgreSQL? You can check the list of supported extensions in the Amazon RDS User Guide.
pgAgent is currently not available in the rds.extensions list and there is no ETA as to when it will be available.
If you want to run schedule jobs such as running DML/DDL statements then I will suggest using shell scripts (calling, for example 'psql' with the -c flag to execute a query) in conjunction with an OS level scheduler (e.g., crontab) on a Linux EC2 instance.
You can see currently supported extensions by below command:
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With