Re: Conditional INSERT: if not exists

From: "Don Morrison" <donmorrison(at)gmail(dot)com>
To: "Bruno Wolff III" <bruno(at)wolff(dot)to>, "Don Morrison" <donmorrison(at)gmail(dot)com>, "Franck Routier" <franck(dot)routier(at)axege(dot)com>, pgsql-novice(at)postgresql(dot)org
Subject: Re: Conditional INSERT: if not exists
Date: 2006-08-23 21:05:55
Message-ID: aee6519f0608231405u13b16147v3ae2cdb5a158e102@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

> If you know there won't be concurrent inserts or deletes affecting the
> row of interest there is a way to do this in the INSERT statement.

I cannot rule out concurrent inserts.

> > transaction...I'm not sure the nested transaction is necessary...maybe
> > just the savepoint. Example:
> Using save points creates nested transactions, so you have that overhead by
> whatever name it is called.

Overhead yes, that was not the question. The question was is the
extra nesting necessary?

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Sean Davis 2006-08-23 21:10:56 Re: Conditional INSERT: if not exists
Previous Message Bruno Wolff III 2006-08-23 20:57:44 Re: Conditional INSERT: if not exists