Re: No long-lived transaction, still can't delete tuples - Mailing list pgsql-general

From Tom Lane
Subject Re: No long-lived transaction, still can't delete tuples
Date
Msg-id 19436.1019686891@sss.pgh.pa.us
Whole thread Raw
In response to No long-lived transaction, still can't delete tuples  (Jeffrey Baker <jwbaker@acm.org>)
Responses Re: No long-lived transaction, still can't delete tuples
List pgsql-general
Jeffrey Baker <jwbaker@acm.org> writes:
> So I believe the transaction is not long-lived.  Also, I checked
> with tethereal to make absolutely certain that the commit was
> happening:

> ->    0  5163 6f6d 6d69 7400                       Qcommit.
> <-    0  4343 4f4d 4d49 5400 5a                    CCOMMIT.Z
> ->    0  5162 6567 696e 00                         Qbegin.
> <-    0  4342 4547 494e 005a                       CBEGIN.Z

Isn't that BEGIN opening a new transaction?

Some front-end libraries have a bad habit of issuing a BEGIN instantly
after a commit, rather than waiting for the next command to be issued.
That means your app goes to sleep with an open transaction.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: temp space on different location
Next
From: "Robert J. Sanford, Jr."
Date:
Subject: Re: odd psql behaviour on OSX