Re: Transaction vs. Savepoints

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andreas <maps(dot)on(at)gmx(dot)net>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Transaction vs. Savepoints
Date: 2007-02-09 14:43:49
Message-ID: 24405.1171032229@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Andreas <maps(dot)on(at)gmx(dot)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

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Andreas 2007-02-09 15:58:30 Re: Transaction vs. Savepoints
Previous Message Johannes Bruegmann 2007-02-09 09:38:13 Re: relation 12345 is still open