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

From xuyifeng
Subject Re: Please advise features in 7.1 (SUMMARY)
Date
Msg-id 002201c05a78$56604920$e001a8c0@xyf
Whole thread Raw
In response to Please advise features in 7.1  ("John Huttley" <John@mwk.co.nz>)
List pgsql-hackers
Is "if" clause support in PG? 
for example:
"drop table aa if exist"
"insert into aa values(1) if not exists select * from aa where i=1"

I would like PG support it.
---
XuYifeng

----- Original Message ----- 
From: John Huttley <John@mwk.co.nz>
To: <pgsql-hackers@postgresql.org>
Sent: Tuesday, November 28, 2000 9:04 AM
Subject: [HACKERS] Please advise features in 7.1 (SUMMARY)


> Thanks for your help, everyone.
> 
> This is a summary of replies.
> 
> 1. Calculated fields in table definitions . eg.
> 
>     Create table test (
>              A Integer,
>              B integer,
>             the_sum   As  (A+B),
> );
> 
> This functionality can be achieved through the use of views.
> Implementing the create table syntax  may not be too hard,
> but not in 7.1...
> 
> 2  Parameterised Triggers
> 
> Functionality is there, just that the documentation gave the wrong implication.
> An user manual example of using parameterised triggers to implement referential
> integrity
> would be welcome.
> 
> 3. Stored Procedures returning a record set.
> 
> Dream on!
> 
> 
> Regards
> 
> John
> 
> 
> 


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: RE: xlog_bufmgr
Next
From: Alain Toussaint
Date:
Subject: Re: beta testing version