duplicated comments on get_relation_constraints

Поиск
Список
Период
Сортировка
От jian he
Тема duplicated comments on get_relation_constraints
Дата
Msg-id CACJufxETi6x86S8EkH8mRfOcm2AenoE9t1pyCFVMpU34gVhF3w@mail.gmail.com
обсуждение исходный текст
Ответы Re: duplicated comments on get_relation_constraints
Список pgsql-hackers
hi.

in plancat.c, function: get_relation_constraints

```
for (i = 0; i < num_check; i++)
{
    Node       *cexpr;
    /*
      * If this constraint hasn't been fully validated yet, we must
      * ignore it here.  Also ignore if NO INHERIT and we weren't told
      * that that's safe.
      */
    if (!constr->check[i].ccvalid)
      continue;

    /*
      * NOT ENFORCED constraints are always marked as invalid, which
      * should have been ignored.
      */
    Assert(constr->check[i].ccenforced);

    /*
      * Also ignore if NO INHERIT and we weren't told that that's safe.
      */
    if (constr->check[i].ccnoinherit && !include_noinherit)
      continue;
}
``

The first "Also ignore if NO INHERIT and we weren't told that that's
safe." is duplicated,
also it's in the wrong place?
The second one is fine.



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