Re: Getting total and free disk space from paths in PGDATA

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Getting total and free disk space from paths in PGDATA
Date: 2015-09-09 03:17:38
Message-ID: CAB7nPqSX4sJDVCY8Lfpha_syUVC2ho2pYqcBAugogg1pbMhi0A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Sep 7, 2015 at 11:47 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Michael Paquier <michael(dot)paquier(at)gmail(dot)com> writes:
>> statvfs is part of the POSIX spec and is "normally" present on modern
>> platforms (BSD, OSX, Linux and Solaris have it as far as I saw, still
>> there may be some strange platform without it).
>
> There are considerably less strange platforms that have per-user
> disk quotas. I wonder what statvfs does with those.

This does not seem good on this side. On Linux for example statvfs and
statfs return information about the FS and not the quotas related to
the user calling it, which would be what is actually interesting in
our case when PG is run by a user under which hard-limit quotas are
applying :(
--
Michael

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2015-09-09 03:31:44 Re: checkpointer continuous flushing
Previous Message Michael Paquier 2015-09-09 02:26:27 Re: Getting total and free disk space from paths in PGDATA