pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Don't auto-restart per-database autoprewarm workers.
Date: Mon, 18 Mar 2019 19:35:26 +0000
Message-ID: <E1h5y2g-0005OG-2N@gemulon.postgresql.org> (raw)

Don't auto-restart per-database autoprewarm workers.

We should try to prewarm each database only once.  Otherwise, if
prewarming fails for some reason, it will just keep retrying in an
infnite loop.  This can happen if, for example, the database has been
dropped.  The existing code was intended to implement the try-once
behavior, but failed to do so because it neglected to set
worker.bgw_restart_time to BGW_NEVER_RESTART.

Mithun Cy, per a report from Hans Buschmann

Discussion: http://postgr.es/m/CA+hUKGKpQJCWcgyy3QTC9vdn6uKAR_8r__A-MMm2GYfj45caag@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1459e84cb2e57649627753ad1279428d35590df6

Modified Files
--------------
contrib/pg_prewarm/autoprewarm.c | 1 +
1 file changed, 1 insertion(+)



view thread (2+ messages)

Message-ID: <E1h5y2g-0005OG-2N@gemulon.postgresql.org>
Permalink:  ../E1h5y2g-0005OG-2N@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1h5y2g-0005OG-2N@gemulon.postgresql.org

 · 

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-committers@postgresql.org
  Cc: rhaas@postgresql.org
  Subject: Re: pgsql: Don't auto-restart per-database autoprewarm workers.
  In-Reply-To: <E1h5y2g-0005OG-2N@gemulon.postgresql.org>
  References: <E1h5y2g-0005OG-2N@gemulon.postgresql.org>

* 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