pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Check for interrupts inside the nbtree page deletion code. 6+ messages / 1 participants [nested] [flat]
* pgsql: Check for interrupts inside the nbtree page deletion code. @ 2018-07-04 23:07 Andres Freund <andres@anarazel.de> 0 siblings, 0 replies; 6+ messages in thread From: Andres Freund @ 2018-07-04 23:07 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Check for interrupts inside the nbtree page deletion code. When deleting pages the nbtree code has to walk through siblings of a tree node. When those sibling links are corrupted that can lead to endless loops - which are currently not interruptible. This is especially problematic if autovacuum is repeatedly blocked on such indexes, as it can be hard to get out of that situation without resorting to single user mode. Thus add interrupt checks to appropriate places in such loops. Unfortunately in one of the cases it's it's not easy to do so. Between 9.3 and 9.4 the page deletion (and page split) code changed significantly. Before it was significantly less robust against interruptions. Therefore don't backpatch to 9.3. Author: Andres Freund Discussion: https://postgr.es/m/20180627191629.wkunw2qbibnvlz53@alap3.anarazel.de Backpatch: 9.4- Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/3a01f68e35a3584431ac5381c6ed75b1b39aaf2a Modified Files -------------- src/backend/access/nbtree/nbtpage.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Check for interrupts inside the nbtree page deletion code. @ 2018-07-04 23:07 Andres Freund <andres@anarazel.de> 0 siblings, 0 replies; 6+ messages in thread From: Andres Freund @ 2018-07-04 23:07 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Check for interrupts inside the nbtree page deletion code. When deleting pages the nbtree code has to walk through siblings of a tree node. When those sibling links are corrupted that can lead to endless loops - which are currently not interruptible. This is especially problematic if autovacuum is repeatedly blocked on such indexes, as it can be hard to get out of that situation without resorting to single user mode. Thus add interrupt checks to appropriate places in such loops. Unfortunately in one of the cases it's it's not easy to do so. Between 9.3 and 9.4 the page deletion (and page split) code changed significantly. Before it was significantly less robust against interruptions. Therefore don't backpatch to 9.3. Author: Andres Freund Discussion: https://postgr.es/m/20180627191629.wkunw2qbibnvlz53@alap3.anarazel.de Backpatch: 9.4- Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/0c69db762d886ce2c2b0cb311e24ab76c4740c0b Modified Files -------------- src/backend/access/nbtree/nbtpage.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Check for interrupts inside the nbtree page deletion code. @ 2018-07-04 23:07 Andres Freund <andres@anarazel.de> 0 siblings, 0 replies; 6+ messages in thread From: Andres Freund @ 2018-07-04 23:07 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Check for interrupts inside the nbtree page deletion code. When deleting pages the nbtree code has to walk through siblings of a tree node. When those sibling links are corrupted that can lead to endless loops - which are currently not interruptible. This is especially problematic if autovacuum is repeatedly blocked on such indexes, as it can be hard to get out of that situation without resorting to single user mode. Thus add interrupt checks to appropriate places in such loops. Unfortunately in one of the cases it's it's not easy to do so. Between 9.3 and 9.4 the page deletion (and page split) code changed significantly. Before it was significantly less robust against interruptions. Therefore don't backpatch to 9.3. Author: Andres Freund Discussion: https://postgr.es/m/20180627191629.wkunw2qbibnvlz53@alap3.anarazel.de Backpatch: 9.4- Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/0095809890dd74e8f8aa54c684f84e76aebf9406 Modified Files -------------- src/backend/access/nbtree/nbtpage.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Check for interrupts inside the nbtree page deletion code. @ 2018-07-04 23:07 Andres Freund <andres@anarazel.de> 0 siblings, 0 replies; 6+ messages in thread From: Andres Freund @ 2018-07-04 23:07 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Check for interrupts inside the nbtree page deletion code. When deleting pages the nbtree code has to walk through siblings of a tree node. When those sibling links are corrupted that can lead to endless loops - which are currently not interruptible. This is especially problematic if autovacuum is repeatedly blocked on such indexes, as it can be hard to get out of that situation without resorting to single user mode. Thus add interrupt checks to appropriate places in such loops. Unfortunately in one of the cases it's it's not easy to do so. Between 9.3 and 9.4 the page deletion (and page split) code changed significantly. Before it was significantly less robust against interruptions. Therefore don't backpatch to 9.3. Author: Andres Freund Discussion: https://postgr.es/m/20180627191629.wkunw2qbibnvlz53@alap3.anarazel.de Backpatch: 9.4- Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/2adadf018bd48e634231ece3df4814954bb20041 Modified Files -------------- src/backend/access/nbtree/nbtpage.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Check for interrupts inside the nbtree page deletion code. @ 2018-07-04 23:07 Andres Freund <andres@anarazel.de> 0 siblings, 0 replies; 6+ messages in thread From: Andres Freund @ 2018-07-04 23:07 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Check for interrupts inside the nbtree page deletion code. When deleting pages the nbtree code has to walk through siblings of a tree node. When those sibling links are corrupted that can lead to endless loops - which are currently not interruptible. This is especially problematic if autovacuum is repeatedly blocked on such indexes, as it can be hard to get out of that situation without resorting to single user mode. Thus add interrupt checks to appropriate places in such loops. Unfortunately in one of the cases it's it's not easy to do so. Between 9.3 and 9.4 the page deletion (and page split) code changed significantly. Before it was significantly less robust against interruptions. Therefore don't backpatch to 9.3. Author: Andres Freund Discussion: https://postgr.es/m/20180627191629.wkunw2qbibnvlz53@alap3.anarazel.de Backpatch: 9.4- Branch ------ REL9_5_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/f411108c9fe9ca087358220fe0939e4668ef69ff Modified Files -------------- src/backend/access/nbtree/nbtpage.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Check for interrupts inside the nbtree page deletion code. @ 2018-07-04 23:07 Andres Freund <andres@anarazel.de> 0 siblings, 0 replies; 6+ messages in thread From: Andres Freund @ 2018-07-04 23:07 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Check for interrupts inside the nbtree page deletion code. When deleting pages the nbtree code has to walk through siblings of a tree node. When those sibling links are corrupted that can lead to endless loops - which are currently not interruptible. This is especially problematic if autovacuum is repeatedly blocked on such indexes, as it can be hard to get out of that situation without resorting to single user mode. Thus add interrupt checks to appropriate places in such loops. Unfortunately in one of the cases it's it's not easy to do so. Between 9.3 and 9.4 the page deletion (and page split) code changed significantly. Before it was significantly less robust against interruptions. Therefore don't backpatch to 9.3. Author: Andres Freund Discussion: https://postgr.es/m/20180627191629.wkunw2qbibnvlz53@alap3.anarazel.de Backpatch: 9.4- Branch ------ REL9_4_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/8c8c9f37c283292b0505c6337f96662ce6f5be2b Modified Files -------------- src/backend/access/nbtree/nbtpage.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) ^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2018-07-04 23:07 UTC | newest] Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2018-07-04 23:07 pgsql: Check for interrupts inside the nbtree page deletion code. Andres Freund <andres@anarazel.de> 2018-07-04 23:07 pgsql: Check for interrupts inside the nbtree page deletion code. Andres Freund <andres@anarazel.de> 2018-07-04 23:07 pgsql: Check for interrupts inside the nbtree page deletion code. Andres Freund <andres@anarazel.de> 2018-07-04 23:07 pgsql: Check for interrupts inside the nbtree page deletion code. Andres Freund <andres@anarazel.de> 2018-07-04 23:07 pgsql: Check for interrupts inside the nbtree page deletion code. Andres Freund <andres@anarazel.de> 2018-07-04 23:07 pgsql: Check for interrupts inside the nbtree page deletion code. Andres Freund <andres@anarazel.de>
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