PREPARE TRANSACTION and webapps

From: Lincoln Yeoh <lyeoh(at)pop(dot)jaring(dot)my>
To: pgsql-general(at)postgresql(dot)org
Subject: PREPARE TRANSACTION and webapps
Date: 2005-11-10 17:09:36
Message-ID: 5.2.1.1.1.20051111010156.01f1e260@localhost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

Is it OK to use PREPARE TRANSACTION and COMMIT PREPARED in order to have
transactions that last longer than just a single web request?

Previously it was usually a bad idea to keep database connections alive
just to keep a transaction pending.

Now I'm thinking that we could keep transactions around for as long as the
relevant web _session_ is valid. That will be quite nice for many things.

Would it be easier to support X "prepared transactions" than X database
connections for increasing values of X?

Thanks,

Link.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Fuhr 2005-11-10 17:24:06 Re: Where Statement
Previous Message Scott Frankel 2005-11-10 17:01:52 Re: build errors on MacOSX