Re: I/O on select count(*)

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: I/O on select count(*)
Дата
Msg-id 1210962235.18922.109.camel@ebony.site
обсуждение исходный текст
Ответ на Re: I/O on select count(*)  (Greg Smith <gsmith@gregsmith.com>)
Список 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 по дате отправления:

Предыдущее
От: Ben
Дата:
Сообщение: Re: very slow left join
Следующее
От: "Scott Marlowe"
Дата:
Сообщение: Re: very slow left join