Re: gprof SELECT COUNT(*) results - Mailing list pgsql-hackers

From Qingqing Zhou
Subject Re: gprof SELECT COUNT(*) results
Date
Msg-id Pine.LNX.4.58.0511250044520.14187@eon.cs
Whole thread Raw
In response to Re: gprof SELECT COUNT(*) results  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: gprof SELECT COUNT(*) results
List pgsql-hackers

On Thu, 24 Nov 2005, Tom Lane wrote:
>
> I don't see those costing nearly as much as your results show
> ... perhaps there's something platform-specific at work?
> What I see, down to the 1% level, is
>

I can see your computer is really slow, so my theory is that since it is
easy to hold a running-slowly horse than a fast one, so my spinlock on a
2.4G modern machine should takes relatively longer time to get effective.
Just kidding. I am not sure what's happened, but in previous email there
is a program I wrote to test the spinlock performance. In my machine, the
profiling results matches the single spinlock test.

>
> The only other objection I can think of is that if there are any broken
> tuples on a page, this approach would likely make it impossible to fetch
> any of the non-broken ones :-(
>

What do you mean by "broken tuple"? An data corrupted tuple? So you mean
if scan operator find a broken tuple on a page, then it will abort the
operation without returning any other good tuples? I think this is
acceptable.

Regards,
Qingqing


pgsql-hackers by date:

Previous
From: Dennis Bjorklund
Date:
Subject: Re: NULL safe equality operator
Next
From: Christopher Kings-Lynne
Date:
Subject: Re: NULL safe equality operator