pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Don't auto-restart per-database autoprewarm workers.
2+ messages / 1 participants
[nested] [flat]

* pgsql: Don't auto-restart per-database autoprewarm workers.
@ 2019-03-18 19:35  Robert Haas <rhaas@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Robert Haas @ 2019-03-18 19:35 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/fc8b39a46eb7132edc0165f23b738a2292ee9ca9

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Don't auto-restart per-database autoprewarm workers.
@ 2019-03-18 19:35  Robert Haas <rhaas@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Robert Haas @ 2019-03-18 19:35 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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(+)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2019-03-18 19:35 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-03-18 19:35 pgsql: Don't auto-restart per-database autoprewarm workers. Robert Haas <rhaas@postgresql.org>
2019-03-18 19:35 pgsql: Don't auto-restart per-database autoprewarm workers. Robert Haas <rhaas@postgresql.org>

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