X-Original-To: pgsql-sql@postgresql.org Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id EA4AE4758C9 for ; Sat, 8 Mar 2003 17:10:43 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.8/8.12.8) with ESMTP id h28MAiub012297; Sat, 8 Mar 2003 17:10:44 -0500 (EST) To: Rod Taylor Cc: daniel alvarez , pgsql-sql@postgresql.org Subject: Re: Atomicity of UPDATE, interchanging values in unique In-reply-to: <1047160571.28251.202.camel@jester> References: <1047159202.28251.196.camel@jester> <21780.1047160126@www48.gmx.net> <1047160571.28251.202.camel@jester> Comments: In-reply-to Rod Taylor message dated "08 Mar 2003 16:56:11 -0500" Date: Sat, 08 Mar 2003 17:10:44 -0500 Message-ID: <12296.1047161444@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200303/215 X-Sequence-Number: 12255 >> 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