Re: Quick Help - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Quick Help
Date
Msg-id 13260.1039210461@sss.pgh.pa.us
Whole thread Raw
In response to Quick Help  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
List pgsql-hackers
"Christopher Kings-Lynne" <chriskl@familyhealth.com.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


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: SQL/MED spec for cross-database linkages
Next
From: "Dave Page"
Date:
Subject: Re: [GENERAL] PostgreSQL Global Development Group