Thread: Re: [PERFORM] autovacuum daemon stops doing work after about an hour

Re: [PERFORM] autovacuum daemon stops doing work after about an hour

From
Vivek Khera
Date:
Actually, you can simplify the fix thusly:

  diff = (long long)(now.tv_sec - then.tv_sec) * 1000000 + (now.tv_usec - then.tv_usec);