Re: I/O on select count(*) - Mailing list pgsql-performance

From Simon Riggs
Subject Re: I/O on select count(*)
Date
Msg-id 1210962235.18922.109.camel@ebony.site
Whole thread Raw
In response to Re: I/O on select count(*)  (Greg Smith <gsmith@gregsmith.com>)
List pgsql-performance
On Fri, 2008-05-16 at 14:05 -0400, Greg Smith wrote:
> After reading the code and that documentation a bit, the part I'm
> still not sure about is whether the CLOG entry is created when the XID
> is assigned and then kept current as the state changes, or whether
> that isn't even in CLOG until the transaction is committed.  It seems
> like the latter, but there's some ambiguity in the wording and too
> many code paths for me to map right now.

Alvaro already said this, I thought? The clog is updated only at sub or
main transaction end, thank goodness. When the transactionid is assigned
the page of the clog that contains that transactionid is checked to see
if it already exists and if not, it is initialised.

--
 Simon Riggs           www.2ndQuadrant.com
 PostgreSQL Training, Services and Support


pgsql-performance by date:

Previous
From: Ben
Date:
Subject: Re: very slow left join
Next
From: "Scott Marlowe"
Date:
Subject: Re: very slow left join