What do you need to do more of, inserts or updates? If the answer is
updates, just do an update and then check for the number of rows affected.
If it is 0, follow it with an insert, if not, you are done.
You could do this in a stored procedure to save you the round trip of data
between the DB and your application and will be faster.
pgsql-general by date
|Next:||From: Bruno Wolff III||Date: 2004-04-23 15:03:34|
|Subject: Re: Insert Or update|
|Previous:||From: Pascal Polleunus||Date: 2004-04-23 14:28:16|
|Subject: Synchronize unicode data using copy or pg_dump|