Re: Please advise features in 7.1 (SUMMARY)

From: Andrew Snow <als(at)fl(dot)net(dot)au>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Please advise features in 7.1 (SUMMARY)
Date: 2000-11-30 05:15:14
Message-ID: Pine.BSF.4.21.0011301614200.37065-100000@jander.fl.net.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


On Thu, 30 Nov 2000, Thomas Lockhart wrote:

> > 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"
>
> No. afaict it is not in any SQL standard, so is unlikely to get much
> attention from developers.

Plus, for that second one can't you just do:

INSERT INTO aa SELECT 1 WHERE NOT EXISTS (SELECT * FROM aa WHERE i=1);

- Andrew

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Lockhart 2000-11-30 05:24:14 Re: Please advise features in 7.1 (SUMMARY)
Previous Message Alain Toussaint 2000-11-30 04:28:50 Re: beta testing version