Re: Monitoring disk space from within the server

From: Christoph Berg <myon(at)debian(dot)org>
To: Julien Rouhaud <rjuju123(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Monitoring disk space from within the server
Date: 2019-11-08 13:35:31
Message-ID: 20191108133531.GH8017@msg.df7cb.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Re: Julien Rouhaud 2019-11-08 <CAOBaU_YVGEnsnP1ufp42NiJ+WvPHRWBOsBOcaxWxsbXPN_sdNQ(at)mail(dot)gmail(dot)com>
> Shouldn't we have something more generic, in hope that this eventually
> get implemented on Windows? I'm also wondering if getting the fs
> information is enough, as there might be quota.

The name is certainly not a good pick, it's not meant to be a raw
statfs() wrapper but something more high-level. I just went with that
to have something working to start with.

How about these?
pg_tablespace_stats()
pg_tablespace_space()
pg_tablespace_disk_space()

Christoph

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2019-11-08 13:38:34 Re: CountDBSubscriptions check in dropdb
Previous Message Julien Rouhaud 2019-11-08 13:32:13 Re: Monitoring disk space from within the server