pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hannu Krosing <hannu@tm.ee>
To: Mike Rogers <temp6453@hotmail.com>
Cc: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
Cc: pgsql-hackers@postgresql.org, Jean-Michel POURE <jm.poure@freesurf.fr>
Subject: Re: Ultimate DB Server
Date: Mon, 29 Oct 2001 09:44:39 +0200
Message-ID: <3BDD08E7.360984F8@tm.ee> (raw)
References: <ECEHIKNFIMMECLEBJFIGGEFNCCAA.chriskl@familyhealth.com.au>
	<OE19Zp3envHynxmxqjc00005bc4@hotmail.com>

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



view thread (16+ messages)  latest in thread

Message-ID: <3BDD08E7.360984F8@tm.ee>
Permalink:  ../3BDD08E7.360984F8@tm.ee/
Also on:    postgresql.org/message-id/3BDD08E7.360984F8@tm.ee

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: hannu@tm.ee, temp6453@hotmail.com, chriskl@familyhealth.com.au, jm.poure@freesurf.fr
  Subject: Re: Ultimate DB Server
  In-Reply-To: <3BDD08E7.360984F8@tm.ee>
  References: <ECEHIKNFIMMECLEBJFIGGEFNCCAA.chriskl@familyhealth.com.au> <OE19Zp3envHynxmxqjc00005bc4@hotmail.com> <3BDD08E7.360984F8@tm.ee>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox