Re: a few questions (and doubts) about xid

From: "Simon Riggs" <simon(at)2ndquadrant(dot)com>
To: "Luca Ferrari" <fluca1978(at)infinito(dot)it>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: a few questions (and doubts) about xid
Date: 2007-07-25 12:43:40
Message-ID: 1185367420.4146.4.camel@ebony.site
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 2007-07-24 at 19:51 +0200, Luca Ferrari wrote:

> Now, for subtrans the xid is laizyly obtained, due to efficiency purposes. But
> in such way subtrans xid should be greater than each other xid of concurrent
> (main) transactions. If the subtrans inserts a record is the subtrans xid
> placed in xmin? Because in this case the xmin value makes the tuple invisible
> to every other concurrent transaction started with the parent one. Is this
> true or do the subtrans commit with the parent xid (in this case why the
> subtrans should have a xid?)? Ok, I'm bit confused here....

Visibility has nothing to do with subtransactions, so your worry is not
relevant. We judge visibility either at the start of each transaction
when in SERIALIZABLE mode, or we judge visibility at the start of each
statement when in READ COMMITTED (default) mode.

--
Simon Riggs
EnterpriseDB http://www.enterprisedb.com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Luca Ferrari 2007-07-25 13:48:26 Re: a few questions (and doubts) about xid
Previous Message Nalin Bakshi 2007-07-25 12:32:10 Backslah in encrypt function.