Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iT4QK-0000y8-96 for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Nov 2019 13:35:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iT4QJ-0000sR-2L for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Nov 2019 13:35:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iT4QI-0000sK-Pz for pgsql-hackers@lists.postgresql.org; Fri, 08 Nov 2019 13:35:34 +0000 Received: from feynman.df7cb.de ([195.49.152.168]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iT4QG-0007Mu-Mp for pgsql-hackers@postgresql.org; Fri, 08 Nov 2019 13:35:34 +0000 Received: from msg.df7cb.de (unknown [IPv6:2003:5b:203b:100:7627:eaff:fe52:8e03]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id 478h9H4xnpz3F19; Fri, 8 Nov 2019 14:35:31 +0100 (CET) Date: Fri, 8 Nov 2019 14:35:31 +0100 From: Christoph Berg To: Julien Rouhaud Cc: PostgreSQL Hackers Subject: Re: Monitoring disk space from within the server Message-ID: <20191108133531.GH8017@msg.df7cb.de> Mail-Followup-To: Christoph Berg , Julien Rouhaud , PostgreSQL Hackers References: <20191108132419.GG8017@msg.df7cb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.2 (2019-09-21) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Re: Julien Rouhaud 2019-11-08 > 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