How can I merge a TargetEntry with a tuple?

From: Zoltan Boszormenyi <zboszor(at)dunaweb(dot)hu>
To: pgsql-hackers(at)postgresql(dot)org
Subject: How can I merge a TargetEntry with a tuple?
Date: 2007-02-19 17:13:03
Message-ID: 45D9DA9F.3040804@dunaweb.hu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2007-02-19 17:15:55 Re: WIP patch - INSERT-able log statements
Previous Message Guillaume Smet 2007-02-19 17:00:17 Re: WIP patch - INSERT-able log statements