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

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Getting total and free disk space from paths in PGDATA
Дата
Msg-id CAB7nPqSX4sJDVCY8Lfpha_syUVC2ho2pYqcBAugogg1pbMhi0A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Getting total and free disk space from paths in PGDATA  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Mon, Sep 7, 2015 at 11:47 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Michael Paquier <michael.paquier@gmail.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



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Getting total and free disk space from paths in PGDATA
Следующее
От: Amit Kapila
Дата:
Сообщение: Re: checkpointer continuous flushing