Re: the XID question - Mailing list pgsql-performance

From Charles.Hou
Subject Re: the XID question
Date
Msg-id b5fc661d-0c4b-4dd9-ab56-06888410188c@m20g2000prc.googlegroups.com
Whole thread Raw
In response to the XID question  ("Charles.Hou" <givemeegn@gmail.com>)
Responses Re: the XID question
List pgsql-performance
On 1月19日, 下午10時39分, Kevin.Gritt...@wicourts.gov ("Kevin Grittner")
wrote:
> Filip Rembia*kowski<plk.zu...@gmail.com> wrote:
> > 2011/1/19 Charles.Hou <giveme...@gmail.com>:
> >> " select * from mybook" SQL command also increase the XID ?
>
> > Yes. Single SELECT is a transaction. Hence, it needs a transaction
> > ID.
>
> No, not in recent versions of PostgreSQL.  There's virtual
> transaction ID, too; which is all that's needed unless the
> transaction writes something.
>
my postgresql version is 8.1.3
you means the newer version has a virtual transaction ID. and what's
the maxmium of this virtual id,  also 4 billion ?
should i also vacuum freeze the virtual id in the new version when it
reached the 4 billion?

> Also, as a fine point, if you use explicit database transactions
> (with BEGIN or START TRANSACTION) then you normally get one XID for
> the entire transaction, unless you use SAVEPOINTs.
>
> -Kevin
>
> --
> Sent via pgsql-performance mailing list (pgsql-performa...@postgresql.org)
> To make changes to your subscription:http://www.postgresql.org/mailpref/pgsql-performance



pgsql-performance by date:

Previous
From: Craig Ringer
Date:
Subject: Re: Migrating to Postgresql and new hardware
Next
From: Achilleas Mantzios
Date:
Subject: Re: "NOT IN" substantially slower in 9.0.2 than 8.3.13 - NOT EXISTS runs fast in both 8.3.13 and 9.0.2