Re: Transaction vs. Savepoints - Mailing list pgsql-novice

From Tom Lane
Subject Re: Transaction vs. Savepoints
Date
Msg-id 24405.1171032229@sss.pgh.pa.us
Whole thread Raw
In response to Transaction vs. Savepoints  (Andreas <maps.on@gmx.net>)
Responses Re: Transaction vs. Savepoints  (Andreas <maps.on@gmx.net>)
List pgsql-novice
Andreas <maps.on@gmx.net> writes:
> As far as I know, PG handles 1 transaction per connection an several
> savepoints boxed within.

One transaction *at a time*, not one for the whole life of the session.

A good general design rule is that no transaction should stay open for
very long: do what you need to do and commit.  So the scenarios you're
envisioning are not relevant to a well-designed application.

            regards, tom lane

pgsql-novice by date:

Previous
From: Richard Broersma Jr
Date:
Subject: Re: Transaction vs. Savepoints
Next
From: Andreas
Date:
Subject: Re: Transaction vs. Savepoints