Restrict pg_relation_size to relation owner, pg_database_size to DB owner,

Tom Lane <tgl@sss.pgh.pa.us>

Commit: cc26599b7206b20d12dc7f88df1dd69c09db67a6
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2007-08-27T01:19:14Z
Releases: 8.3.0
Restrict pg_relation_size to relation owner, pg_database_size to DB owner,
and pg_tablespace_size to superusers.  Perhaps we could weaken the first
case to just require SELECT privilege, but that doesn't work for the
other cases, so use ownership as the common concept.

Files

PathChange+/−
src/backend/utils/adt/dbsize.c modified +37 −1