I have a python script on postgresql database which is fetching records from sql server database and inserting it to postgresql DB after some filtering. this jobs is running by cron
every two minutes. I want to know when there is maintenance job such as autovacuum
is running and if running forget fetching records. Is it possible to detect in python?
Jon Seigel
- 16.9k
- 6
- 45
- 84