Re: Insert Or update - Mailing list pgsql-general

From Igor Shevchenko
Subject Re: Insert Or update
Date
Msg-id 200404232101.00957.igor@carcass.ath.cx
Whole thread Raw
In response to Re: Insert Or update  (Bruno Wolff III <bruno@wolff.to>)
List pgsql-general
On Friday 23 April 2004 20:41, Bruno Wolff III wrote:
> I suspect most of the people doing this have something wrong with their
> design in the first place.

Not really.

Here's a simple example. I have a set of mailboxes and I needed to implement a
gui widget to assign/remove them to/from a workspace. When the widget starts,
there are two lists: first with assigned, second with unassigned (all other)
mailboxes. User moves data from one list to another and some back, etc, and
hits "OK" button. It appeared that the easiest way to sync this widget's data
with the database was via insert-or-update path.

--
Best regards,
Igor Shevchenko

pgsql-general by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: Insert Or update
Next
From: "Jim C. Nasby"
Date:
Subject: Silent overflow