Re: upsert functionality

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: upsert functionality
Date: 2014-01-22 21:20:38
Message-ID: 52E03626.1060703@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 1/22/2014 10:21 AM, joocom wrote:
> Some days ago, i had to to implement an upsert and used a a/LOCK TABLE/ to
> prevent the race conditions. Working fine for the moment.
>
> http://www.joocom.de/blog/postgresql-insert-und-update-in-einem-statement/
> <http://www.joocom.de/blog/postgresql-insert-und-update-in-einem-statement/>

that won't perform very well if you have a high level of concurrency.

have you seen the upsert example in the postgres plpgsql docs ?

--
john r pierce 37N 122W
somewhere on the middle of the left coast

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Joseph Kregloh 2014-01-22 21:33:47 Re: pg_upgrade & tablespaces
Previous Message Adrian Klaver 2014-01-22 19:38:04 Re: CREATE EXTENSION does not seem to work in 9.2