| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | "Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au> |
| Cc: | "Hackers" <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: Quick Help |
| Date: | 2002-12-06 21:34:21 |
| Message-ID: | 13260.1039210461@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
"Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au> writes:
> Messing about with ADD COLUMN...
> I'm not certain how to re-evaluate the default expression for each
> row?
Basically you'll want to apply ExecEvalExpr (or perhaps
ExecEvalExprSwitchContext) to the "cooked" expression tree.
Look at the execution of per-row constraints in ADD CONSTRAINT;
should be very very similar.
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Dave Page | 2002-12-06 21:43:08 | Re: [GENERAL] PostgreSQL Global Development Group |
| Previous Message | Christopher Kings-Lynne | 2002-12-06 21:06:59 | Re: [HACKERS] [GENERAL] PostgreSQL Global Development Group |