PREPARE TRANSACTION and webapps - Mailing list pgsql-general

From Lincoln Yeoh
Subject PREPARE TRANSACTION and webapps
Date
Msg-id 5.2.1.1.1.20051111010156.01f1e260@localhost
Whole thread Raw
Responses Re: PREPARE TRANSACTION and webapps  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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.


pgsql-general by date:

Previous
From: "Carlos Oliva"
Date:
Subject: Re: Performance of autovacuum and full vacuum of database
Next
From: Aly Dharshi
Date:
Subject: Re: [ANNOUNCE] PostgreSQL 8.1.0 RPMs are available for