Re: How to run a task continuously in the background - Mailing list pgsql-general

From Dirk Mika
Subject Re: How to run a task continuously in the background
Date
Msg-id 524EDA3D-6A0F-4E67-AA7E-0E743A8B79E1@mikatiming.de
Whole thread Raw
In response to RE: How to run a task continuously in the background  (Steven Winfield <Steven.Winfield@cantabcapital.com>)
List pgsql-general

 

pg_cron, perhaps?
https://www.citusdata.com/blog/2016/09/09/pgcron-run-periodic-jobs-in-postgres/

I _think_ it ticks all three of your boxes.

I also checked pg_cron, but this has the disadvantage that it allows starting a job at most once a minute. On the other hand, the job runs as long as there are records to process. And during this time nothing should be queued again.

DIrk

--
Dirk Mika
Software Developer



mika:timing GmbH
Strundepark - Kürtener Str. 11b
51465 Bergisch Gladbach
Germany

fon +49 2202 2401-1197
dirk.mika@mikatiming.de
www.mikatiming.de

AG Köln HRB 47509 * WEEE-Reg.-Nr. DE 90029884
Geschäftsführer: Harald Mika, Jörg Mika


 
Attachment

pgsql-general by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Download link for postgres 10.8 edb software
Next
From: Dirk Mika
Date:
Subject: Re: How to run a task continuously in the background