Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install pgAgent on AWS RDS for Postgres

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.

like image 729
johnny Avatar asked Jul 19 '16 18:07

johnny


People also ask

What is pgAgent in PostgreSQL?

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.

Does AWS RDS support PostgreSQL?

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.


1 Answers

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
like image 195
error2007s Avatar answered Oct 02 '22 01:10

error2007s