Re: Changing behavior of BEGIN...sleep...do something...COMMIT

From: Olleg Samojlov <olleg(at)telecom(dot)mipt(dot)ru>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Changing behavior of BEGIN...sleep...do something...COMMIT
Date: 2003-03-31 07:08:33
Message-ID: b68phh$2gmi$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

Tom Lane wrote:
> It seems to me that it'd be fairly easy to make BEGIN cause only
> a local state change in the backend; the actual transaction need not
> start until the first subsequent command is received. It's already
> true that the transaction snapshot is not frozen at BEGIN time, but
> only when the first DML or DDL command is received; so this would
> have no impact on the client-visible semantics. But a BEGIN-then-
> sleep-for-awhile client wouldn't interfere with VACUUM anymore.

As I can remember, already, when autocommit off transaction begin with
first DML or DDL command. May be better change client to use autocommit
off mode?

--
Olleg Samojlov

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kevin Brown 2003-03-31 08:35:09 Re: Domain breakage
Previous Message Ferindo Middleton Jr 2003-03-31 06:28:55 Re: Newbie: problem Connecting to Server