X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id EDF8FD1B53E for ; Fri, 3 Oct 2003 20:45:07 +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 39839-06 for ; Fri, 3 Oct 2003 17:44:23 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 41299D1B58E for ; Fri, 3 Oct 2003 17:27:28 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id h93KRChn000730; Fri, 3 Oct 2003 16:27:12 -0400 (EDT) To: "John B. Scalia" Cc: pgsql-sql@postgresql.org Subject: Re: Bug in psql - Postgresql 7.3.1? In-reply-to: <001a01c389b0$e00773a0$2501a8c0@John> References: <001a01c389b0$e00773a0$2501a8c0@John> Comments: In-reply-to "John B. Scalia" message dated "Fri, 03 Oct 2003 09:18:44 -0400" Date: Fri, 03 Oct 2003 16:27:12 -0400 Message-ID: <729.1065212832@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/59 X-Sequence-Number: 15459 "John B. Scalia" writes: > UPDATE my_table SET field1='new_value' AND SET field2='different_value' > WHERE my_table_id = 'key'; The other responses have focused on your obvious syntax error, but I'm assuming you didn't actually cut-and-paste that from your psql session. > in psql, it reports that it has successfully updated one record. > However, the record does not appear to be updated when I subsequently > issue a SELECT for that record. I'm wondering if you are checking from another transaction that doesn't think the first one is committed yet. Are you using BEGIN/END or autocommit-off mode? regards, tom lane