Replaceing records - Mailing list pgsql-general

From Alex
Subject Replaceing records
Date
Msg-id 3F56F117.3080006@meerkatsoft.com
Whole thread Raw
Responses Re: Replaceing records
List pgsql-general
Hi,
MySQL has a nice feature that allows to call a replace rather insert
which will attempt to insert if record not present and replace if it does.

Is there any similar feature ?

Currently I run a select prior to any insert and then update or insert
depending on the result of the select. The problem here is that I just
doubled the queries. Doing so on a table with 5Mio rows and on 100k
inserts will take time and I would like to have an efficient way of
doing it.

Any ideas ?
Thanks
Alex



pgsql-general by date:

Previous
From: Andreas Muck
Date:
Subject: More than 1024 connections from the same c-backend
Next
From: Andreas Muck
Date:
Subject: Re: More than 1024 connections from the same c-backend