From: | Julien Rouhaud <rjuju123(at)gmail(dot)com> |
---|---|
To: | Michael Paquier <michael(at)paquier(dot)xyz> |
Cc: | Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>, Christoph Berg <myon(at)debian(dot)org>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Monitoring disk space from within the server |
Date: | 2019-11-12 09:07:28 |
Message-ID: | CAOBaU_YYE-pc=qJNd4zVEcvj7E_fS+p8=nQN-6z6dm4FobXMwg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, Nov 12, 2019 at 2:48 AM Michael Paquier <michael(at)paquier(dot)xyz> wrote:
>
> On Mon, Nov 11, 2019 at 09:11:35PM +0100, Laurenz Albe wrote:
> > Will this work on Windows?
> > A quick web search seems to indicate that Windows has no statfs(2).
>
> It won't. We are actually discussing the compatibility aspects and
> the minimal data set we could grab in a different part of the thread.
For the record I already mentioned Windows specificity in [1] and
GetDiskFreeSpaceA [2] looks like the function to use on windows.
[1] https://www.postgresql.org/message-id/CAOBaU_Zu6RP6-mHyA_J9-xkxJe0tarTVqU9TFza%2BtCPKUxsjiA%40mail.gmail.com
[2] https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getdiskfreespacea
From | Date | Subject | |
---|---|---|---|
Next Message | Dilip Kumar | 2019-11-12 09:26:33 | Re: [HACKERS] Block level parallel vacuum |
Previous Message | Christoph Berg | 2019-11-12 09:04:24 | Re: Monitoring disk space from within the server |