pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix executor prune failure when plan already pruned 2+ messages / 1 participants [nested] [flat]
* pgsql: Fix executor prune failure when plan already pruned @ 2018-08-16 16:01 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 2+ messages in thread From: Alvaro Herrera @ 2018-08-16 16:01 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix executor prune failure when plan already pruned In a multi-layer partitioning setup, if at plan time all the sub-partitions are pruned but the intermediate one remains, the executor later throws a spurious error that there's nothing to prune. That is correct, but there's no reason to throw an error. Therefore, don't. Reported-by: Andreas Seltenreich <seltenreich@gmx.de> Author: David Rowley <david.rowley@2ndquadrant.com> Discussion: https://postgr.es/m/87in4h98i0.fsf@ansel.ydns.eu Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/6589a435d83ba0b22cb56381fc5b410eb0e27834 Modified Files -------------- src/backend/executor/execPartition.c | 9 +++++++-- src/test/regress/expected/partition_prune.out | 18 ++++++++++++++++++ src/test/regress/sql/partition_prune.sql | 12 ++++++++++++ 3 files changed, 37 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Fix executor prune failure when plan already pruned @ 2018-08-16 16:01 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 2+ messages in thread From: Alvaro Herrera @ 2018-08-16 16:01 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix executor prune failure when plan already pruned In a multi-layer partitioning setup, if at plan time all the sub-partitions are pruned but the intermediate one remains, the executor later throws a spurious error that there's nothing to prune. That is correct, but there's no reason to throw an error. Therefore, don't. Reported-by: Andreas Seltenreich <seltenreich@gmx.de> Author: David Rowley <david.rowley@2ndquadrant.com> Discussion: https://postgr.es/m/87in4h98i0.fsf@ansel.ydns.eu Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/1eb9221585c25cad1a563bc3414f697dae3fbc8b Modified Files -------------- src/backend/executor/execPartition.c | 9 +++++++-- src/test/regress/expected/partition_prune.out | 18 ++++++++++++++++++ src/test/regress/sql/partition_prune.sql | 12 ++++++++++++ 3 files changed, 37 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2018-08-16 16:01 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2018-08-16 16:01 pgsql: Fix executor prune failure when plan already pruned Alvaro Herrera <alvherre@alvh.no-ip.org> 2018-08-16 16:01 pgsql: Fix executor prune failure when plan already pruned 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