On Wed, Jul 22, 2026 at 8:26 PM Christoph Berg <[email protected]> wrote:
>
> psql \l+ didn't consider pg_read_all_stats when determining whether
> the user was allowed to see the database size.
+1 to this fix.
> Split off from the "Available disk space per tablespace" patch since
> it's really an independent fix. Thanks Zsolt for pointing that out.
>
> This might be considered for backpatching.
The pg_read_all_stats check should be fine in master, since psql there
no longer supports pre-v10 servers, which don't have that role. But,
if this is backpatched, psql still needs to work with pre-v10 servers,
so we'll probably need a server version check (e.g., pset.sversion >= 100000)
before checking for pg_read_all_stats, at least in the older stable branches.
Also, should the following description of the \l+ meta-command in
the psql docs be updated?
(Size information is only available for databases that the current
user can connect to.)
Regards,
--
Fujii Masao