pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rob Sargent <robjsargent@gmail.com>
To: Dirk Mika <Dirk.Mika@mikatiming.de>
Cc: Weatherby,Gerard <gweatherby@uchc.edu>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: How to run a task continuously in the background
Date: Wed, 17 Jul 2019 01:45:02 -0600
Message-ID: <C6213713-073F-4F4A-9762-4F7D4EBC2484@gmail.com> (raw)
In-Reply-To: <BAF99260-A043-4AB7-AB36-6CD84862FEC6@mikatiming.de>
References: <7932668C-EA48-436B-AA15-DB7C8446D57F@mikatiming.de>
	<E9FA92C2921F31408041863B74EE4C2001BD810545@CCPMAILDAG03.cantab.local>
	<CAOzAquKb+O3iu0pVBonDDSS8SH=a4Wa4hmYFxAbTwUCi7Hxjhg@mail.gmail.com>
	<D49B7AAD-5EC3-4D62-A263-E22E6633C807@mikatiming.de>
	<CAKoxK+7x4wEA-AMocZ00b8pAcBe2xZMq_6s8xsKPTWq7tGPdig@mail.gmail.com>
	<14555705-8010-4A73-8501-EA07B285E1BA@mikatiming.de>
	<1563278313157.67005@uchc.edu>
	<BAF99260-A043-4AB7-AB36-6CD84862FEC6@mikatiming.de>



> On Jul 17, 2019, at 1:26 AM, Dirk Mika <Dirk.Mika@mikatiming.de> wrote:
> 
>  
> We used a trigger that called pg_notify (https://www.postgresql.org/docs/9.5/sql-notify.html <https://www.postgresql.org/docs/9.5/sql-notify.html>​) and then had another
> 
> process that LISTENed for notifications.
> 
>  
> 
> What kind of process is this? I'm assuming that this is an application written in C.
> 
>  
> 
> The advantage of LISTEN / NOTIFY is only that the process which should process data does not have to do polling, but is notified when there is something to do.
> 
>  
> 
> Dirk
> 
Also, the NOTIFY wouldn’t significantly extend the lifetime or impact of the trigger.
>  
> 
> -- 
> Dirk Mika
> Software Developer
> 
> <image001_d0a5cf51-5dd3-4ff5-b428-1016a6d95a0f.png>
> 
> 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
> 
> <CCh2U_f27a5ce6-8556-4db1-8aa4-fd610d6e9efe.jpg> <https://youtu.be/qfOFXrpSKLQ;

view thread (26+ messages)  latest in thread

Message-ID: <C6213713-073F-4F4A-9762-4F7D4EBC2484@gmail.com>
Permalink:  ../C6213713-073F-4F4A-9762-4F7D4EBC2484@gmail.com/
Also on:    postgresql.org/message-id/C6213713-073F-4F4A-9762-4F7D4EBC2484@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: robjsargent@gmail.com, Dirk.Mika@mikatiming.de, gweatherby@uchc.edu
  Subject: Re: How to run a task continuously in the background
  In-Reply-To: <C6213713-073F-4F4A-9762-4F7D4EBC2484@gmail.com>
  References: <7932668C-EA48-436B-AA15-DB7C8446D57F@mikatiming.de> <E9FA92C2921F31408041863B74EE4C2001BD810545@CCPMAILDAG03.cantab.local> <CAOzAquKb+O3iu0pVBonDDSS8SH=a4Wa4hmYFxAbTwUCi7Hxjhg@mail.gmail.com> <D49B7AAD-5EC3-4D62-A263-E22E6633C807@mikatiming.de> <CAKoxK+7x4wEA-AMocZ00b8pAcBe2xZMq_6s8xsKPTWq7tGPdig@mail.gmail.com> <14555705-8010-4A73-8501-EA07B285E1BA@mikatiming.de> <1563278313157.67005@uchc.edu> <BAF99260-A043-4AB7-AB36-6CD84862FEC6@mikatiming.de> <C6213713-073F-4F4A-9762-4F7D4EBC2484@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox