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

Re: fsutil ideas

From: Neil Conway <neilc(at)samurai(dot)com>
To: Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>
Cc: pgsql-hackers(at)postgresql(dot)org, Peter Brant <Peter(dot)Brant(at)wicourts(dot)gov>
Subject: Re: fsutil ideas
Date: 2006-02-24 02:43:39
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Kevin Grittner wrote:
> Peter Brant, a consultant working with us, has written code which is
> working for this under both Linux and Windows.  [...] For Linux, he
> used statvfs.

statvfs(2) is standardized, but doesn't seem portable: it isn't 
available on OSX 10.3, NetBSD 2.0 or OpenBSD, for example. Perhaps you 
can fallback to statfs(2) when it is available?

This seems an area where providing consistent cross-platform behavior 
might be difficult. Do we actually need this functionality inside the 
DBMS in the first place?

> (2)  If not, is it acceptable for a source file to contain that much
> #if code for Windows?

Let's see the code first...

> (3)  What data type should be used to report total space and free space
> for each volume?



In response to


pgsql-hackers by date

Next:From: Michael GlaesemannDate: 2006-02-24 03:27:23
Subject: Re: PostgreSQL unit tests
Previous:From: Christopher Kings-LynneDate: 2006-02-24 01:58:16
Subject: Re: Foreign keys for non-default datatypes

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