citusdata/pg_cron

Run periodic jobs in PostgreSQL

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 1 hour ago
Type:Plugin / ExtensionCategory(s):Relational & SQL DatabasesDatabases & Storage
Added to GitGenius on September 17th, 2026
Created on September 4th, 2016
Open Issues & Pull Requests: 134 (+0)
GitHub issues: Enabled
Number of forks: 261
Total Stargazers: 3,892 (+0)
Total Subscribers: 74 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 9.9 days
Mean response time: 48.3 days
90th percentile: 148.3 days
Tracked items: 57

Most active contributors

Sign in to see contributor activity.

How this project is maintained

100% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Three people close 62% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 41
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 831 days
Stale 30+ days: 38
Stale 90+ days: 38

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 1
Events in 7 days: 1

Top labels

  • bug (1)
  • enhancement (1)

Most active issues this week

Detailed Description

pg_cron is a PostgreSQL extension that runs periodic jobs inside the database.

The tool solves the problem of scheduling recurring tasks without requiring external cron infrastructure or separate scheduler services. It works by allowing you to schedule SQL commands to execute at specified intervals directly within PostgreSQL. Jobs are defined using standard cron syntax, making it familiar to developers accustomed to Unix cron scheduling. The extension runs a background worker process that monitors and executes scheduled jobs at their designated times.

Teams should adopt pg_cron when they want to keep job scheduling logic colocated with their database rather than managing it through external tools. It suits projects where periodic maintenance tasks, data cleanup, or report generation can be expressed as SQL commands and where keeping everything within the PostgreSQL ecosystem simplifies deployment and reduces operational complexity. The tool is particularly valuable for applications already running on PostgreSQL where adding external scheduler dependencies would introduce unnecessary infrastructure overhead.

The project shows consistent maintenance with regular updates addressing bug fixes and compatibility improvements across PostgreSQL versions. Development activity demonstrates responsiveness to issues and pull requests, with fixes being merged and released in a timely manner. The codebase remains actively managed to ensure compatibility as PostgreSQL evolves.