Incorrect debug info printed in generate_partition_wise_join_paths

From: Etsuro Fujita <fujita(dot)etsuro(at)lab(dot)ntt(dot)co(dot)jp>
To: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Incorrect debug info printed in generate_partition_wise_join_paths
Date: 2017-12-08 09:52:38
Message-ID: 5A2A60E6.6000008@lab.ntt.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

generate_partition_wise_join_paths prints debug info, if
OPTIMIZER_DEBUG, using debug_print_rel at the end of each iteration for
collecting non-dummy child-joins, but I noticed that we pass to that
function the parent's RelOptInfo, not such a child-join's RelOptInfo. I
don't think it's intentional, so here is a patch for fixing that.

Best regards,
Etsuro Fujita

Attachment Content-Type Size
optimizer-debug.patch text/x-diff 531 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2017-12-08 09:56:07 Re: [HACKERS] parallel.c oblivion of worker-startup failures
Previous Message Etsuro Fujita 2017-12-08 09:40:32 Re: [HACKERS] postgres_fdw bug in 9.6