Re: Available disk space per tablespace

solai v <solai.cdac@gmail.com>

From: solai v <solai.cdac@gmail.com>
To: Christoph Berg <myon@debian.org>
Cc: Thomas Munro <thomas.munro@gmail.com>, Quan Zongliang <quanzongliang@yeah.net>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2026-05-22T06:15:25Z
Lists: pgsql-hackers
Hi ,
I tested the v5 of the pg_tablespace_avail() patch  on Linux.
The patch applied and built cleanly for me .After applying the patch
and re-running initdb,pg_tablespace_avail() worked correctly and \db+
showed the new Free column as expected.
The reported values matched the output from df -h on my system.I also
tested custom tablespace and non-superuser access,and both behaved
correctly.
Additionally,I ran :
make check TESTS= tablespace
and all tests passed.
Overall , the feature looks useful and worked well in my testing.

Regards
Solai