pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Empty partial_pathlist when unsetting consider_parallel flag 7+ messages / 1 participants [nested] [flat]
* pgsql: Empty partial_pathlist when unsetting consider_parallel flag @ 2026-10-29 03:20 David Rowley <drowley@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: David Rowley @ 2026-10-29 03:20 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Empty partial_pathlist when unsetting consider_parallel flag It's not valid for a RelOptInfo to have a non-empty partial_pathlist when its consider_parallel is true. In set_append_rel_pathlist() when we see the parent rel doesn't have consider_parallel set, we set that property to false for the child. It is possible that the child already has some partial paths at that point, so we need to nullify that list as well as set the consider_parallel flag to false. For the reported problem case, the partial paths had been created during set_subquery_pathlist(). These not being empty was causing an Assert failure on cassert builds. I think this could only have gone on to result in some wasted planner effort in non-cassert builds, but cannot confirm if anything worse could have happened. Bug: #19803 Reported-by: Gowtham Reddy <gowthamdoma18@gmail.com> Author: David Rowley <dgrowleyml@gmail.com> Tested-by: Gowtham Reddy <gowthamdoma18@gmail.com> Discussion: https://postgr.es/m/19803-1fcc1df108c54ab6@postgresql.org Backpatch-through: 14 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/abda2a2c9b2a76687513ef223f782b333951149f Modified Files -------------- src/backend/optimizer/path/allpaths.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Empty partial_pathlist when unsetting consider_parallel flag @ 2026-10-29 03:20 David Rowley <drowley@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: David Rowley @ 2026-10-29 03:20 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Empty partial_pathlist when unsetting consider_parallel flag It's not valid for a RelOptInfo to have a non-empty partial_pathlist when its consider_parallel is true. In set_append_rel_pathlist() when we see the parent rel doesn't have consider_parallel set, we set that property to false for the child. It is possible that the child already has some partial paths at that point, so we need to nullify that list as well as set the consider_parallel flag to false. For the reported problem case, the partial paths had been created during set_subquery_pathlist(). These not being empty was causing an Assert failure on cassert builds. I think this could only have gone on to result in some wasted planner effort in non-cassert builds, but cannot confirm if anything worse could have happened. Bug: #19803 Reported-by: Gowtham Reddy <gowthamdoma18@gmail.com> Author: David Rowley <dgrowleyml@gmail.com> Tested-by: Gowtham Reddy <gowthamdoma18@gmail.com> Discussion: https://postgr.es/m/19803-1fcc1df108c54ab6@postgresql.org Backpatch-through: 14 Branch ------ REL_19_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/d9701ac316461c9829ca95b26ef3666621ccec19 Modified Files -------------- src/backend/optimizer/path/allpaths.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Empty partial_pathlist when unsetting consider_parallel flag @ 2026-10-29 03:21 David Rowley <drowley@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: David Rowley @ 2026-10-29 03:21 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Empty partial_pathlist when unsetting consider_parallel flag It's not valid for a RelOptInfo to have a non-empty partial_pathlist when its consider_parallel is true. In set_append_rel_pathlist() when we see the parent rel doesn't have consider_parallel set, we set that property to false for the child. It is possible that the child already has some partial paths at that point, so we need to nullify that list as well as set the consider_parallel flag to false. For the reported problem case, the partial paths had been created during set_subquery_pathlist(). These not being empty was causing an Assert failure on cassert builds. I think this could only have gone on to result in some wasted planner effort in non-cassert builds, but cannot confirm if anything worse could have happened. Bug: #19803 Reported-by: Gowtham Reddy <gowthamdoma18@gmail.com> Author: David Rowley <dgrowleyml@gmail.com> Tested-by: Gowtham Reddy <gowthamdoma18@gmail.com> Discussion: https://postgr.es/m/19803-1fcc1df108c54ab6@postgresql.org Backpatch-through: 14 Branch ------ REL_18_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/cc4bf6e9acc9b9a385e37bd13bd55b5c941529cc Modified Files -------------- src/backend/optimizer/path/allpaths.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Empty partial_pathlist when unsetting consider_parallel flag @ 2026-10-29 03:21 David Rowley <drowley@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: David Rowley @ 2026-10-29 03:21 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Empty partial_pathlist when unsetting consider_parallel flag It's not valid for a RelOptInfo to have a non-empty partial_pathlist when its consider_parallel is true. In set_append_rel_pathlist() when we see the parent rel doesn't have consider_parallel set, we set that property to false for the child. It is possible that the child already has some partial paths at that point, so we need to nullify that list as well as set the consider_parallel flag to false. For the reported problem case, the partial paths had been created during set_subquery_pathlist(). These not being empty was causing an Assert failure on cassert builds. I think this could only have gone on to result in some wasted planner effort in non-cassert builds, but cannot confirm if anything worse could have happened. Bug: #19803 Reported-by: Gowtham Reddy <gowthamdoma18@gmail.com> Author: David Rowley <dgrowleyml@gmail.com> Tested-by: Gowtham Reddy <gowthamdoma18@gmail.com> Discussion: https://postgr.es/m/19803-1fcc1df108c54ab6@postgresql.org Backpatch-through: 14 Branch ------ REL_17_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/85a38715894b4fb19c5b544713dc4865e71e9622 Modified Files -------------- src/backend/optimizer/path/allpaths.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Empty partial_pathlist when unsetting consider_parallel flag @ 2026-10-29 03:21 David Rowley <drowley@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: David Rowley @ 2026-10-29 03:21 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Empty partial_pathlist when unsetting consider_parallel flag It's not valid for a RelOptInfo to have a non-empty partial_pathlist when its consider_parallel is true. In set_append_rel_pathlist() when we see the parent rel doesn't have consider_parallel set, we set that property to false for the child. It is possible that the child already has some partial paths at that point, so we need to nullify that list as well as set the consider_parallel flag to false. For the reported problem case, the partial paths had been created during set_subquery_pathlist(). These not being empty was causing an Assert failure on cassert builds. I think this could only have gone on to result in some wasted planner effort in non-cassert builds, but cannot confirm if anything worse could have happened. Bug: #19803 Reported-by: Gowtham Reddy <gowthamdoma18@gmail.com> Author: David Rowley <dgrowleyml@gmail.com> Tested-by: Gowtham Reddy <gowthamdoma18@gmail.com> Discussion: https://postgr.es/m/19803-1fcc1df108c54ab6@postgresql.org Backpatch-through: 14 Branch ------ REL_16_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/dd9f55249a642439ee9b1685d5ec33efb982f86d Modified Files -------------- src/backend/optimizer/path/allpaths.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Empty partial_pathlist when unsetting consider_parallel flag @ 2026-10-29 03:22 David Rowley <drowley@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: David Rowley @ 2026-10-29 03:22 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Empty partial_pathlist when unsetting consider_parallel flag It's not valid for a RelOptInfo to have a non-empty partial_pathlist when its consider_parallel is true. In set_append_rel_pathlist() when we see the parent rel doesn't have consider_parallel set, we set that property to false for the child. It is possible that the child already has some partial paths at that point, so we need to nullify that list as well as set the consider_parallel flag to false. For the reported problem case, the partial paths had been created during set_subquery_pathlist(). These not being empty was causing an Assert failure on cassert builds. I think this could only have gone on to result in some wasted planner effort in non-cassert builds, but cannot confirm if anything worse could have happened. Bug: #19803 Reported-by: Gowtham Reddy <gowthamdoma18@gmail.com> Author: David Rowley <dgrowleyml@gmail.com> Tested-by: Gowtham Reddy <gowthamdoma18@gmail.com> Discussion: https://postgr.es/m/19803-1fcc1df108c54ab6@postgresql.org Backpatch-through: 14 Branch ------ REL_15_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/22cc38fd7a9be157ed61a5c821fd39e4b4dcfdf7 Modified Files -------------- src/backend/optimizer/path/allpaths.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Empty partial_pathlist when unsetting consider_parallel flag @ 2026-10-29 03:22 David Rowley <drowley@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: David Rowley @ 2026-10-29 03:22 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Empty partial_pathlist when unsetting consider_parallel flag It's not valid for a RelOptInfo to have a non-empty partial_pathlist when its consider_parallel is true. In set_append_rel_pathlist() when we see the parent rel doesn't have consider_parallel set, we set that property to false for the child. It is possible that the child already has some partial paths at that point, so we need to nullify that list as well as set the consider_parallel flag to false. For the reported problem case, the partial paths had been created during set_subquery_pathlist(). These not being empty was causing an Assert failure on cassert builds. I think this could only have gone on to result in some wasted planner effort in non-cassert builds, but cannot confirm if anything worse could have happened. Bug: #19803 Reported-by: Gowtham Reddy <gowthamdoma18@gmail.com> Author: David Rowley <dgrowleyml@gmail.com> Tested-by: Gowtham Reddy <gowthamdoma18@gmail.com> Discussion: https://postgr.es/m/19803-1fcc1df108c54ab6@postgresql.org Backpatch-through: 14 Branch ------ REL_14_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/b0fa692801d1a0f8d8480bc21d57992a41ee2fd5 Modified Files -------------- src/backend/optimizer/path/allpaths.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2026-10-29 03:22 UTC | newest] Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2026-10-29 03:20 pgsql: Empty partial_pathlist when unsetting consider_parallel flag David Rowley <drowley@postgresql.org> 2026-10-29 03:20 pgsql: Empty partial_pathlist when unsetting consider_parallel flag David Rowley <drowley@postgresql.org> 2026-10-29 03:21 pgsql: Empty partial_pathlist when unsetting consider_parallel flag David Rowley <drowley@postgresql.org> 2026-10-29 03:21 pgsql: Empty partial_pathlist when unsetting consider_parallel flag David Rowley <drowley@postgresql.org> 2026-10-29 03:21 pgsql: Empty partial_pathlist when unsetting consider_parallel flag David Rowley <drowley@postgresql.org> 2026-10-29 03:22 pgsql: Empty partial_pathlist when unsetting consider_parallel flag David Rowley <drowley@postgresql.org> 2026-10-29 03:22 pgsql: Empty partial_pathlist when unsetting consider_parallel flag David Rowley <drowley@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