Andrew Gilligan <andy@tcpd.net> writes:
> Showing the size on \l+ probably makes more sense, but I imagine that
> would require a very different approach due to the permissions changes?
I haven't experimented, but perhaps something along the lines of
case when has_database_privilege(current_user, db.oid, 'connect')then pg_database_size...else nullend
would fix it.
regards, tom lane