X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 2FC0ED1C4E3 for ; Mon, 28 Jul 2003 18:28:29 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 08134-09 for ; Mon, 28 Jul 2003 15:27:32 -0300 (ADT) Received: from mail1.ihs.com (mail1.ihs.com [170.207.70.222]) by svr1.postgresql.org (Postfix) with ESMTP id 07B0BD1C4CB for ; Mon, 28 Jul 2003 15:28:27 -0300 (ADT) Received: from css120.ihs.com (css120.ihs.com [170.207.105.120]) by mail1.ihs.com (8.12.9/8.12.9) with ESMTP id h6SIRVLV000621; Mon, 28 Jul 2003 12:27:31 -0600 (MDT) Date: Mon, 28 Jul 2003 12:16:12 -0600 (MDT) From: "scott.marlowe" To: Andrei Verovski Cc: Subject: Re: UPDATE sql question In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-MailScanner: Found to be clean X-MailScanner-SpamCheck: X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/57 X-Sequence-Number: 2169 On Mon, 28 Jul 2003, Andrei Verovski wrote: > Hi, > > What exactly will happen if UPDATE sql statement instructs to update > some columns with the same values as already in the database? Will > Postgres update only different values or it will simply modify all > columns listed in UPDATE sql? It will update the columns. Which means lots of dead tuples, which means vacuuming.