From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
---|---|
To: | Andres Freund <andres(at)anarazel(dot)de> |
Cc: | Matthew Wilcox <matthew(at)wil(dot)cx>, Andi Kleen <andi(at)firstfloor(dot)org>, viro <viro(at)zeniv(dot)linux(dot)org(dot)uk>, linux-fsdevel <linux-fsdevel(at)vger(dot)kernel(dot)org>, linux-kernel <linux-kernel(at)vger(dot)kernel(dot)org>, robertmhaas <robertmhaas(at)gmail(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Improve lseek scalability v3 |
Date: | 2011-09-16 17:39:50 |
Message-ID: | 1316194619-sup-2946@alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Excerpts from Andres Freund's message of vie sep 16 14:27:33 -0300 2011:
> Hi,
> On Friday 16 Sep 2011 17:36:20 Matthew Wilcox wrote:
> > Does the query planner need to know the exact number of bytes in the file,
> > or is it after an order-of-magnitude? Or to-the-nearest-gigabyte?
> It depends on where the information is used. For some of the uses it needs to
> be exact (the assumed size is rechecked after acquiring a lock preventing
> extension) at other places I guess it would be ok if the accuracy got lower
> with bigger files (those files won't ever get bigger than 1GB).
One other thing we're interested in is portability. I mean, even if
Linux were to introduce a new hypothetical syscall that was able to
return the file size at a ridiculously low cost, we probably wouldn't
use it because it'd be Linux-specific. So an improvement of lseek()
seems to be the best option.
--
Álvaro Herrera <alvherre(at)commandprompt(dot)com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
From | Date | Subject | |
---|---|---|---|
Next Message | Andi Kleen | 2011-09-16 17:50:27 | Re: Improve lseek scalability v3 |
Previous Message | Andres Freund | 2011-09-16 17:27:33 | Re: Improve lseek scalability v3 |