Postgres Trigger in specified time

902 views Asked by At

Hello expert I am working in banking software vendor company and we are working in PostgreSQL database due to load of work in office time(pick hour) I want to execute some function in specified time(off hour) with trigger. So please if you have any idea please help me.

1

There are 1 answers

0
Laurenz Albe On

A trigger should always be something fast. You don't want to hold transactions open for a couple of hours, that would be a really bad idea.

The correct solution for such a problem would be a queue. There are some existing implementations like PGQ, but I don't know if the'll meet your requirements.