• 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
Sheriff
Posts: 36031
432
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.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!