Installing pgAgent
To prevent tables from becoming extremely large over time, some tables of the database used by Z ChatOps are partitioned by date range. You must maintain these partitions regularly. PostgreSQL does not provide task scheduler to perform certain tasks regularly by default. You can use many ways to create partitions in a specified period.
About this task
You can use the following ways to create partitions in a specified period. It is recommended that
you use pgAgent together with pgAdmin 4. pgAgent is distributed independently of pgAdmin 4.
- The job scheduler of your operating system. For more information, see https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/ch-automating_system_tasks.
- pgAgent. For more information, see https://www.pgadmin.org/docs/pgadmin4/latest/pgagent.html.
- pg_cron. For more information, see https://github.com/citusdata/pg_cron.
- pg_timetable. For more information, see https://github.com/cybertec-postgresql/pg_timetable.
This topic describes how to install and start pgAgent in your PostgreSQL container on xLinux as an example. If you want to install pgAgent via native installation package, you can follow related guide in pgAdmin 4 web site.