From: Tom Lane <tgl@sss.pgh.pa.us>
To: Rod Taylor <rbt@rbt.ca>
Cc: daniel alvarez <d-alvarez@gmx.de>
Cc: pgsql-sql@postgresql.org
Subject: Re: Atomicity of UPDATE, interchanging values in unique
Date: Sat, 08 Mar 2003 17:10:44 -0500
Message-ID: <12296.1047161444@sss.pgh.pa.us> (raw)
In-Reply-To: <1047160571.28251.202.camel@jester>
References: <1047159202.28251.196.camel@jester>
<21780.1047160126@www48.gmx.net>
<1047160571.28251.202.camel@jester>
>> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, rbt@rbt.ca, d-alvarez@gmx.de
Subject: Re: Atomicity of UPDATE, interchanging values in unique
In-Reply-To: <12296.1047161444@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox