In my Postgres database, I have one stored procedure, say sp_1()
.
Now I have a table called dispatch_details
. Insertion to this table happens once in a while. So if data gets updated in this table during daytime, I want to schedule sp_1
at 8pm on that day. To be more specific, I don't want to schedule sp_1()
if dispatch_details
table is not updated.
How can I accomplish it? Please help.
(Note : I don't want to run sp_1
as and when dispatch_details
is updated, so that I will not be able to use normal trigger here.)