X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id CAFF8475E60 for ; Thu, 27 Feb 2003 22:30:45 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 57881-05 for ; Thu, 27 Feb 2003 22:30:35 -0500 (EST) Received: from h-e.com (wan-vc8fa2d.ston.biz.mindspring.com [216.135.168.77]) by postgresql.org (Postfix) with ESMTP id 9126E475FFF for ; Thu, 27 Feb 2003 21:40:43 -0500 (EST) Received: from [192.168.42.42] (HELO h-e.com) by h-e.com (CommuniGate Pro SMTP 3.5.9) with ESMTP id 90811 for pgsql-admin@postgresql.org; Thu, 27 Feb 2003 18:40:46 -0800 Date: Thu, 27 Feb 2003 18:40:46 -0800 Mime-Version: 1.0 (Apple Message framework v551) Content-Type: text/plain; charset=US-ASCII; format=flowed Subject: Transaction isolation and UNION queries From: Bob Smith To: pgsql-sql Content-Transfer-Encoding: 7bit Message-Id: <0A27C204-4AC6-11D7-978F-0003933DD370@h-e.com> X-Mailer: Apple Mail (2.551) X-Virus-Scanned: by amavisd-new X-Archive-Number: 200302/419 X-Sequence-Number: 7617 I have a question about transaction isolation that I can't find an answer to in the docs. I'm working with a database that has some data split over two tables. One table is the ultimate destination for all the data, the other is a "pending" table which holds rows during data entry. Rows from the pending table are moved to the permanent table once data entry is complete. For some purposes I want to see rows from both tables, so I do a UNION. My question is, with only read committed isolation, could a commit by another transaction make changes appear between the separate parts of the UNION query? In other words, could a row appear to be missing or duplicated because a transaction that was moving the row from pending to permanent committed while the UNION was running? Thanks! Bob Smith Hammett & Edison, Inc. bsmith@h-e.com