Received: from taru.tm.ee (taru.tm.ee [194.204.62.23]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f9T7irP78254 for ; Mon, 29 Oct 2001 02:44:53 -0500 (EST) (envelope-from hannu@tm.ee) Received: from tm.ee (localhost.localdomain [127.0.0.1]) by taru.tm.ee (8.11.6/8.11.6) with ESMTP id f9T7id412304; Mon, 29 Oct 2001 09:44:40 +0200 Message-ID: <3BDD08E7.360984F8@tm.ee> Date: Mon, 29 Oct 2001 09:44:39 +0200 From: Hannu Krosing X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: et, en, ru MIME-Version: 1.0 To: Mike Rogers CC: Christopher Kings-Lynne , pgsql-hackers@postgresql.org, Jean-Michel POURE Subject: Re: Ultimate DB Server References: Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit X-Archive-Number: 200110/1022 X-Sequence-Number: 14744 Mike Rogers wrote: > > What that does is very simple: it rolls back the one that is keeping track > of it's transactions. Think of the overhead if someone doesn't have > transactional statements. The idea is, in PGSQL, all inserts and updates > are essentially logged so that they can be rolled back. Here is the MySQL > concept: > Have a log table that logs all transactions (lets say, failed or not) > 1. begin transaction > 2. insert into non-transactional table 'user did this, > status - unprocessed' > 3. insert into payment table > 4. insert into product table > 5. update to processed > 6. insert into shipping > 7. update to 'pending shipping' > Perfectly common transaction that happens. Now! What if you want the > entry inserted and dealt with as a status and what happens, but you don't > want all the evidence of that to disappear when you hit rollback. > It means you can have some things roll back and others don't. In PGSQL, > that would have to be begin/rollback for only transactional entries. Or you would run two parallel transactions (currently you need two connections for this) - one for logging and one for work. I agree that having non_transactional (i.e. logging) tables may be sometimes desirable. I've been told that some of Oracles debugging/logging facilities are almost useless due-to the fact that they disappear at rollback. ------------------ Hannu