Re: foreign key on virtual generated column

Поиск
Список
Период
Сортировка
От Srinath Reddy Sadipiralla
Тема Re: foreign key on virtual generated column
Дата
Msg-id CAFC+b6pnURqakmx=2VJ+suz3KwwC9tdQ7AWZB4wJirV2G9J8dg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: foreign key on virtual generated column  (Srinath Reddy Sadipiralla <srinath2133@gmail.com>)
Список pgsql-hackers
Hi Jian,

did initial testing and review ,the patches LGTM except
indentation we can solve this by running pg_indent.

i have one doubt that why we are using compute_virtual
argument todo the same work in both cases, is it because
of future proofing ,like we may do something different for
stored and virtual in future?

/* No luck, so prepare the expression for execution */
if (attgenerated == ATTRIBUTE_GENERATED_STORED)
{
ri_GeneratedExprs[i] = ExecPrepareExpr(expr, estate);
ri_NumGeneratedNeeded++;
}
else if (compute_virtual)
{
ri_GeneratedExprs[i] = ExecPrepareExpr(expr, estate);
ri_NumGeneratedNeeded++;
}


--
Thanks,
Srinath Reddy Sadipiralla
EDB: https://www.enterprisedb.com/

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