Re: What's the XID? - Mailing list pgsql-admin

From Andrew Sullivan
Subject Re: What's the XID?
Date
Msg-id 20071227154243.GF8160@crankycanuck.ca
Whole thread Raw
In response to What's the XID?  ("ivan.hou" <ivan.hou@msa.hinet.net>)
Responses Re: What's the XID?  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: What's the XID?  ("ivan.hou" <ivan.hou@msa.hinet.net>)
List pgsql-admin
On Wed, Dec 26, 2007 at 05:48:14PM -0800, ivan.hou wrote:
>
> XID is transcation ID?

Yes.

> so, "select * from mydb" is a transcation?

Yes.

> if i executed "select * from mydb" twice, the XID wil be increased by 2

Yep.  Whereas if you did

    BEGIN;
    SELECT 1;
    SELECT 1;
    COMMIT;

the xid would be increased by 1.

A

pgsql-admin by date:

Previous
From: "ivan.hou"
Date:
Subject: What's the XID?
Next
From: "George, Harry G"
Date:
Subject: high-availability on MS Windows cluster -- need insights