pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christoph Berg <myon@debian.org>
To: Julien Rouhaud <rjuju123@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Subject: Re: Monitoring disk space from within the server
Date: Fri, 8 Nov 2019 14:35:31 +0100
Message-ID: <20191108133531.GH8017@msg.df7cb.de> (raw)
In-Reply-To: <CAOBaU_YVGEnsnP1ufp42NiJ+WvPHRWBOsBOcaxWxsbXPN_sdNQ@mail.gmail.com>
References: <20191108132419.GG8017@msg.df7cb.de>
	<CAOBaU_YVGEnsnP1ufp42NiJ+WvPHRWBOsBOcaxWxsbXPN_sdNQ@mail.gmail.com>

Re: Julien Rouhaud 2019-11-08 <CAOBaU_YVGEnsnP1ufp42NiJ+WvPHRWBOsBOcaxWxsbXPN_sdNQ@mail.gmail.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





view thread (22+ messages)  latest in thread

Message-ID: <20191108133531.GH8017@msg.df7cb.de>
Permalink:  ../20191108133531.GH8017@msg.df7cb.de/
Also on:    postgresql.org/message-id/20191108133531.GH8017@msg.df7cb.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: myon@debian.org, rjuju123@gmail.com
  Subject: Re: Monitoring disk space from within the server
  In-Reply-To: <20191108133531.GH8017@msg.df7cb.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox