• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

postgres schedual jobs

 
Michael Crowley
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there
Is there anyway in postgres to start a specific (stored) proecedure at a specific time. For example, at 1:00 AM I want database to delete all the rows that have there expiryDate column less than current date.

I am new to Postgres. Any help, clue or advice is greatly appreciated.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Michael,
If you know how to run a postgres stored proc from the command line, you can have a cron job (or windows scheduler job) kick it off.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic