Dave Page <dpage(at)postgresql(dot)org> writes:
> Tom Lane wrote:
>> * tablespace-size function requires being owner of current DB.
> I assume superusers will also be able to use it, not just the actual owner?
Right --- it'd be an "ownercheck" call which means that superusers and
anyone who's been granted membership in the owning role will succeed,
not just exact matches to the role OID.
However the privilege-bit alternatives might be easier to manage.
regards, tom lane