[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  (Robert Haas <robertmhaas@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: "Higuchi, Daisuke"
Дата:
Сообщение: Re: [HACKERS] [Bug fix]If recovery.conf hastarget_session_attrs=read-write, the standby fails to start.
Следующее
От: Pierre-Emmanuel André
Дата:
Сообщение: [HACKERS] PostgreSQL 10beta1 - compilation fails on OpenBSD -current