Re: What's the XID?

From: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: What's the XID?
Date: 2007-12-27 15:42:43
Message-ID: 20071227154243.GF8160@crankycanuck.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message George, Harry G 2007-12-27 15:45:36 high-availability on MS Windows cluster -- need insights
Previous Message ivan.hou 2007-12-27 01:48:14 What's the XID?