Re: INSERT OR UPDATE WITHOUT SELECT - Mailing list pgsql-performance

From A. Kretschmer
Subject Re: INSERT OR UPDATE WITHOUT SELECT
Date
Msg-id 20060604074014.GA2447@webserv.wug-glas.de
Whole thread Raw
In response to INSERT OR UPDATE WITHOUT SELECT  (wmiro@ig.com.br <wmiro@ig.com.br>)
List pgsql-performance
am  30.05.2006, um 17:47:47 -0300 mailte wmiro@ig.com.br folgendes:
> Hi,
>
> Is there a command to Insert a record If It does not exists and a update if
> It exists?

Not a single command, but a solution:
http://developer.postgresql.org/docs/postgres/plpgsql-control-structures.html#PLPGSQL-ERROR-TRAPPING


HTH, Andreas
--
Andreas Kretschmer    (Kontakt: siehe Header)
Heynitz:  035242/47215,      D1: 0160/7141639
GnuPG-ID 0x3FFF606C http://wwwkeys.de.pgp.net
 ===    Schollglas Unternehmensgruppe    ===

pgsql-performance by date:

Previous
From: Mark Kirkwood
Date:
Subject: Re: RES: Initial database loading and IDE x SCSI
Next
From: "Ahmad Fajar"
Date:
Subject: Re: Bulk loading/merging