How can I merge a TargetEntry with a tuple?

Поиск
Список
Период
Сортировка
От Zoltan Boszormenyi
Тема How can I merge a TargetEntry with a tuple?
Дата
Msg-id 45D9DA9F.3040804@dunaweb.hu
обсуждение исходный текст
Список pgsql-hackers
Hi,

I started working again on my
IDENTITY/GENERATED patch.
My question is $SUBJECT.
This code is in rewriteTargetlist():

new_attr = build_column_default()
new_tle = makeTargetEntry((Expr *) new_expr, ...)

Now, in ExecInsert() I have to compute
the default for IDENTITY/GENERATED
between ExecConstraints() and heap_insert().

How can I create a Datum out of either an Expr
or a TargetEntry (that contains the computed
constant out of the default expression) so I can
use it after I did an heap_deform_tuple()?

Best regards,
Zoltán Böszörményi



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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: [PATCHES] WIP patch - INSERT-able log statements
Следующее
От: David Fetter
Дата:
Сообщение: Re: wishlist items ..