Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hoYwQ-0003aw-L3 for pgsql-general@arkaria.postgresql.org; Fri, 19 Jul 2019 19:53:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hoYwP-0001r2-IX for pgsql-general@arkaria.postgresql.org; Fri, 19 Jul 2019 19:53:17 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hoYwP-0001pA-54 for pgsql-general@lists.postgresql.org; Fri, 19 Jul 2019 19:53:17 +0000 Received: from mail.hjp.at ([212.17.106.138] helo=rorschach.hjp.at) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1hoYwM-000839-K7 for pgsql-general@lists.postgresql.org; Fri, 19 Jul 2019 19:53:16 +0000 Received: by rorschach.hjp.at (Postfix, from userid 1000) id 19D712E0E; Fri, 19 Jul 2019 21:53:13 +0200 (CEST) Date: Fri, 19 Jul 2019 21:53:13 +0200 From: "Peter J. Holzer" To: pgsql-general@lists.postgresql.org Subject: Re: How to run a task continuously in the background Message-ID: <20190719195313.36d5xgcub7kh2vda@hjp.at> References: <7932668C-EA48-436B-AA15-DB7C8446D57F@mikatiming.de> <14555705-8010-4A73-8501-EA07B285E1BA@mikatiming.de> <8D19E041-DFA4-40C0-9CCA-36D65548E842@mikatiming.de> <20190717113441.GB15220@campbell-lange.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="jnd73oggkfqdknbt" Content-Disposition: inline In-Reply-To: <20190717113441.GB15220@campbell-lange.net> User-Agent: NeoMutt/20170113 (1.7.2) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --jnd73oggkfqdknbt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2019-07-17 12:34:41 +0100, Rory Campbell-Lange wrote: > We make extensive use of postgresql 'contacting' an external process, > but our use case involves many databases in a cluster rather than many > schemas. Also we don't have to deal with cancelling the external > process. We chose this architecture to avoid many postgresql > connections for LISTEN/NOTIFY. >=20 > We use a pgmemcache interface trigger to update memcached with a > notification of the database holding items to be flushed. Memcached is a cache. It will delete old items if storage is full (or if they expire). Is this not a problem in your case or did you make sure that this cannot happen? hp --=20 _ | Peter J. Holzer | we build much bigger, better disasters now |_|_) | | because we have much more sophisticated | | | hjp@hjp.at | management tools. __/ | http://www.hjp.at/ | -- Ross Anderson --jnd73oggkfqdknbt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAl0yH6QACgkQ8g5IURL+ KF3kZQ//dWh8l+EYK8aEaSJXlsCGBTeX4b8+FLzkceBs0rq4VhEcvT/5A9IL+eeU CjUiMEevU+vfCwU6s+J+QQX7MFvOecH15k17DO4x3qPdGQ8Aajo0i9trME4wvM9L an4jzPVXQVhltFjqORse7kj1cTSlMIXKbQNKEO8wuLX802kqsoiS8D17EtlMqHVk +xOEzW2tLsalS6IzAew8Q3AkGNsuONYm62sKbbwxRArGzAn2+rRYDhGFQWV+viMR 3gYKUC24mQdETmklGLED5sLrfjxGK4SI24i6obKIL+tNtvoe8kZEyQ1MwfQSEa69 HHixK7FghaAi3TeRPa7OebbMQWMnW/1h46101dzXRFeCr+A9c+TpNAsMVbrnuac8 akddP/RtEvekcoYwy2cjQNgdTo2y1eSCxa/Ts6nJb5mrFXTqZc6eIBivWhXiXudP P5MkdPcoxx4OUuHoFCgj3Gh4i2Htmfbywl1AIE+duQWyFZZoVxTwVKchfukh/VlN 8wcdi+hXiGWyqiUfP04YLisLB3LoBTmNN5AiN8jvg7YNqf0lnnA10ehT+XX+ijq/ +kdqIa8apNaVsMIIvUSBAQGQc7lemS+ZrGhlhxkDNRFVye8LN0Xo8OxOKViXaMeC s3wr/3fldnX+ZISTUKt7Qrep6XHs3xp7eqjh5eFNnySs1IDc4YE= =Gq2G -----END PGP SIGNATURE----- --jnd73oggkfqdknbt--