Reputation: 2352
Is possible triggering a function in postgres at a timed interval??
For example
CREATE TRIGGER deleteOldRecords BEFORE "TIME_OUT" ON table
FOR EACH ROW EXECUTE PROCEDURE deleteOldRecordsP();
Upvotes: 5
Views: 17105
Reputation: 95582
Scheduled database jobs for PostgreSQL are usually done by cron
or pg_agent. The CREATE TRIGGER statement doesn't support timed intervals as a type of event.
Upvotes: 10