Skip site navigation (1) Skip section navigation (2)

Re: I/O on select count(*)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Matthew Wakeling <matthew(at)flymine(dot)org>, pgsql-performance(at)postgresql(dot)org
Subject: Re: I/O on select count(*)
Date: 2008-05-19 15:37:58
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
Bruce Momjian <bruce(at)momjian(dot)us> writes:
> Matthew Wakeling wrote:
>> Does it really take that long to zero out 8kB of RAM? I thought CPUs were 
>> really quick at doing that!

> Yea, that was my assumption too.

You have to write the page (to be sure there is space for it on disk)
not only zero it.

This design is kind of a holdover, though, from back when we had one
ever-growing clog file.  Today I'd be inclined to think about managing
it more like pg_xlog, ie, have some background process pre-create a
whole segment file at a time.

			regards, tom lane

In response to

pgsql-performance by date

Next:From: Greg SmithDate: 2008-05-19 15:47:38
Subject: Re: I/O on select count(*)
Previous:From: Bruce MomjianDate: 2008-05-19 14:54:06
Subject: Re: I/O on select count(*)

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group