]> granicus.if.org Git - postgresql/commit
Restrict pg_relation_size to relation owner, pg_database_size to DB owner,
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 27 Aug 2007 01:19:14 +0000 (01:19 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 27 Aug 2007 01:19:14 +0000 (01:19 +0000)
commitcc26599b7206b20d12dc7f88df1dd69c09db67a6
tree6ce7915ae2872e7d548c4710519bd2c5ee28e363
parent741e952b54c81d5cc2e46735d12351a83c1c9c6d
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.
src/backend/utils/adt/dbsize.c