From: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Martijn van Oosterhout <kleptog(at)svana(dot)org>, Ron Peacetree <rjpeace(at)earthlink(dot)net>, "Jonah H(dot) Harris" <jonah(dot)harris(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org, pgsql-performance(at)postgresql(dot)org |
Subject: | Re: [HACKERS] A Better External Sort? |
Date: | 2005-10-06 20:17:21 |
Message-ID: | 20051006201721.GB6513@surnet.cl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-performance |
On Thu, Oct 06, 2005 at 03:57:38PM -0400, Tom Lane wrote:
> Martijn van Oosterhout <kleptog(at)svana(dot)org> writes:
> > Indeed, one of the things on my list is to remove all the lseeks in
> > favour of pread. Halving the number of kernel calls has got to be worth
> > something right? Portability is an issue ofcourse...
>
> Being sure that it's not a pessimization is another issue. I note that
> glibc will emulate these functions if the kernel doesn't have them;
> which means you could be replacing one kernel call with three.
>
> And I don't think autoconf has any way to determine whether a libc
> function represents a native kernel call or not ...
The problem kernels would be Linux 2.0, which I very much doubt is going
to be present in to-be-deployed database servers.
Unless someone runs glibc on top of some other kernel, I guess. Is this
a common scenario? I've never seen it.
--
Alvaro Herrera http://www.amazon.com/gp/registry/DXLWNGRJD34
Oh, oh, las chicas galacianas, lo harán por las perlas,
¡Y las de Arrakis por el agua! Pero si buscas damas
Que se consuman como llamas, ¡Prueba una hija de Caladan! (Gurney Halleck)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2005-10-06 20:25:11 | Re: [HACKERS] A Better External Sort? |
Previous Message | Martijn van Oosterhout | 2005-10-06 20:14:47 | Re: [PERFORM] A Better External Sort? |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2005-10-06 20:25:11 | Re: [HACKERS] A Better External Sort? |
Previous Message | Martijn van Oosterhout | 2005-10-06 20:14:47 | Re: [PERFORM] A Better External Sort? |