Re: Atomicity of UPDATE, interchanging values in unique - Mailing list pgsql-sql

From Tom Lane
Subject Re: Atomicity of UPDATE, interchanging values in unique
Date
Msg-id 12296.1047161444@sss.pgh.pa.us
Whole thread Raw
In response to Re: Atomicity of UPDATE, interchanging values in unique  (Rod Taylor <rbt@rbt.ca>)
List pgsql-sql
>> There must be a better solution than the additional dummy update.

How about swapping all the other columns, and preserving the identity of
the primary key?  Arguably, swapping primary keys is a violation of the
relational model to begin with.
        regards, tom lane


pgsql-sql by date:

Previous
From: Rod Taylor
Date:
Subject: Re: Atomicity of UPDATE, interchanging values in unique
Next
From: jasiek@klaster.net
Date:
Subject: Re: Cancelling Queries