forked from citusdata/pg_cron
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Select procedure based on argument type of cron_unschedule_named
The citusdata#299 PR took care of bacward compatibility of the function, but there is still one problem left. If extension isn't updated type of the jobname field in the cron.job table is still NAME, and as a result scan was failing to find rows and unschedule a named job. This fix is relying on the fact that SQL API of the unschedule() function is updated consistently with the cron.job table definition.
- Loading branch information
1 parent
e5eb77e
commit bd0196a
Showing
3 changed files
with
20 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters