Re: Please advise features in 7.1 - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Please advise features in 7.1
Date
Msg-id 5900.974959556@sss.pgh.pa.us
Whole thread Raw
In response to Please advise features in 7.1  ("John Huttley" <John@mwk.co.nz>)
List pgsql-hackers
"John Huttley" <John@mwk.co.nz> writes:
> Reason: I want to know if any of these features are scheduled.

> 1. Calculated fields in table definitions . eg.

>    Create table test (
>             A Integer,
>             B integer,
>            the_sum   As  (A+B),
> );

You can do that now (and for many versions past) with a trigger.
It's not quite as convenient as it ought to be, but it's possible.
AFAIK there's no change in that situation for 7.1.

> 2. Any parameterised triggers

We've had parameterized triggers for years.  Maybe you attach some
meaning to that term beyond what I do?

> 3. Any parameterised stored procedures that return a result set.

There is some support (dating back to Berkeley Postquel) for functions
returning sets, but it's pretty ugly and limited.  Proper support might
happen in 7.2 ...
        regards, tom lane


pgsql-hackers by date:

Previous
From: "John Huttley"
Date:
Subject: Please advise features in 7.1
Next
From: Larry Rosenman
Date:
Subject: Re: syslog output from explain looks weird...