[HACKERS] Redundant check of em_is_child

Поиск
Список
Период
Сортировка
От Amit Langote
Тема [HACKERS] Redundant check of em_is_child
Дата
Msg-id 0b4aca64-5098-dfb4-3b13-7325d2414b69@lab.ntt.co.jp
обсуждение исходный текст
Ответы Re: [HACKERS] Redundant check of em_is_child
Список pgsql-hackers
In match_eclasses_to_foreign_key_col(), there is this:

            if (em->em_is_child)
                continue;       /* ignore children here */

ISTM, it might as well be:

            Assert(!em->em_is_child);    /* no children yet */

That's because, I think it's still too early in query_planner() to be
expecting any child EC members.

Thanks,
Amit

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Вложения

В списке pgsql-hackers по дате отправления: