pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix autovacuum launcher shutdown sequence 6+ messages / 1 participants [nested] [flat]
* pgsql: Fix autovacuum launcher shutdown sequence @ 2015-04-08 16:23 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 6+ messages in thread From: Alvaro Herrera @ 2015-04-08 16:23 UTC (permalink / raw) To: pgsql-committers Fix autovacuum launcher shutdown sequence It was previously possible to have the launcher re-execute its main loop before shutting down if some other signal was received or an error occurred after getting SIGTERM, as reported by Qingqing Zhou. While investigating, Tom Lane further noticed that if autovacuum had been disabled in the config file, it would misbehave by trying to start a new worker instead of bailing out immediately -- it would consider itself as invoked in emergency mode. Fix both problems by checking the shutdown flag in a few more places. These problems have existed since autovacuum was introduced, so backpatch all the way back. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/5df64f298d2863c9fb39437abb3ae6f988aedc0a Modified Files -------------- src/backend/postmaster/autovacuum.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix autovacuum launcher shutdown sequence @ 2015-04-08 16:23 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 6+ messages in thread From: Alvaro Herrera @ 2015-04-08 16:23 UTC (permalink / raw) To: pgsql-committers Fix autovacuum launcher shutdown sequence It was previously possible to have the launcher re-execute its main loop before shutting down if some other signal was received or an error occurred after getting SIGTERM, as reported by Qingqing Zhou. While investigating, Tom Lane further noticed that if autovacuum had been disabled in the config file, it would misbehave by trying to start a new worker instead of bailing out immediately -- it would consider itself as invoked in emergency mode. Fix both problems by checking the shutdown flag in a few more places. These problems have existed since autovacuum was introduced, so backpatch all the way back. Branch ------ REL9_4_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/ec01c1c0a4b3992852f7e1980915f0869498ff69 Modified Files -------------- src/backend/postmaster/autovacuum.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix autovacuum launcher shutdown sequence @ 2015-04-08 16:23 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 6+ messages in thread From: Alvaro Herrera @ 2015-04-08 16:23 UTC (permalink / raw) To: pgsql-committers Fix autovacuum launcher shutdown sequence It was previously possible to have the launcher re-execute its main loop before shutting down if some other signal was received or an error occurred after getting SIGTERM, as reported by Qingqing Zhou. While investigating, Tom Lane further noticed that if autovacuum had been disabled in the config file, it would misbehave by trying to start a new worker instead of bailing out immediately -- it would consider itself as invoked in emergency mode. Fix both problems by checking the shutdown flag in a few more places. These problems have existed since autovacuum was introduced, so backpatch all the way back. Branch ------ REL9_3_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/0d6c9e061b8b089c7130b1daa4f67219fca8491f Modified Files -------------- src/backend/postmaster/autovacuum.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix autovacuum launcher shutdown sequence @ 2015-04-08 16:23 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 6+ messages in thread From: Alvaro Herrera @ 2015-04-08 16:23 UTC (permalink / raw) To: pgsql-committers Fix autovacuum launcher shutdown sequence It was previously possible to have the launcher re-execute its main loop before shutting down if some other signal was received or an error occurred after getting SIGTERM, as reported by Qingqing Zhou. While investigating, Tom Lane further noticed that if autovacuum had been disabled in the config file, it would misbehave by trying to start a new worker instead of bailing out immediately -- it would consider itself as invoked in emergency mode. Fix both problems by checking the shutdown flag in a few more places. These problems have existed since autovacuum was introduced, so backpatch all the way back. Branch ------ REL9_2_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/37dc228e8d3de65895ef8b41c0c4a40b2983e32b Modified Files -------------- src/backend/postmaster/autovacuum.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix autovacuum launcher shutdown sequence @ 2015-04-08 16:23 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 6+ messages in thread From: Alvaro Herrera @ 2015-04-08 16:23 UTC (permalink / raw) To: pgsql-committers Fix autovacuum launcher shutdown sequence It was previously possible to have the launcher re-execute its main loop before shutting down if some other signal was received or an error occurred after getting SIGTERM, as reported by Qingqing Zhou. While investigating, Tom Lane further noticed that if autovacuum had been disabled in the config file, it would misbehave by trying to start a new worker instead of bailing out immediately -- it would consider itself as invoked in emergency mode. Fix both problems by checking the shutdown flag in a few more places. These problems have existed since autovacuum was introduced, so backpatch all the way back. Branch ------ REL9_1_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/cf5d3f27484177cc4a44ec2bcdd786c9b8e59746 Modified Files -------------- src/backend/postmaster/autovacuum.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix autovacuum launcher shutdown sequence @ 2015-04-08 16:23 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 6+ messages in thread From: Alvaro Herrera @ 2015-04-08 16:23 UTC (permalink / raw) To: pgsql-committers Fix autovacuum launcher shutdown sequence It was previously possible to have the launcher re-execute its main loop before shutting down if some other signal was received or an error occurred after getting SIGTERM, as reported by Qingqing Zhou. While investigating, Tom Lane further noticed that if autovacuum had been disabled in the config file, it would misbehave by trying to start a new worker instead of bailing out immediately -- it would consider itself as invoked in emergency mode. Fix both problems by checking the shutdown flag in a few more places. These problems have existed since autovacuum was introduced, so backpatch all the way back. Branch ------ REL9_0_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/595bc97b5eb3c73111f3da0c0474d81efb0f43d0 Modified Files -------------- src/backend/postmaster/autovacuum.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2015-04-08 16:23 UTC | newest] Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2015-04-08 16:23 pgsql: Fix autovacuum launcher shutdown sequence Alvaro Herrera <alvherre@alvh.no-ip.org> 2015-04-08 16:23 pgsql: Fix autovacuum launcher shutdown sequence Alvaro Herrera <alvherre@alvh.no-ip.org> 2015-04-08 16:23 pgsql: Fix autovacuum launcher shutdown sequence Alvaro Herrera <alvherre@alvh.no-ip.org> 2015-04-08 16:23 pgsql: Fix autovacuum launcher shutdown sequence Alvaro Herrera <alvherre@alvh.no-ip.org> 2015-04-08 16:23 pgsql: Fix autovacuum launcher shutdown sequence Alvaro Herrera <alvherre@alvh.no-ip.org> 2015-04-08 16:23 pgsql: Fix autovacuum launcher shutdown sequence Alvaro Herrera <alvherre@alvh.no-ip.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