Relax permissions checks on dbsize functions, per discussion. Revert out all
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 29 Aug 2007 17:24:29 +0000 (17:24 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 29 Aug 2007 17:24:29 +0000 (17:24 +0000)
commit615dee48b08736a4ca71a0a6e522a24f92743685
tree25f7cf132be825b60bc7319c91737c40c2def68c
parente5ab3858be155be9823b94a37f7f9c4b1b29024b
Relax permissions checks on dbsize functions, per discussion.  Revert out all
checks for individual-table-size functions, since anyone in the database could
get approximate values from pg_class.relpages anyway.  Allow database-size to
users with CONNECT privilege for the target database (note that this is
granted by default).  Allow tablespace-size if the user has CREATE privilege
on the tablespace (which is *not* granted by default), or if the tablespace is
the default tablespace for the current database (since we treat that as
implicitly allowing use of the tablespace).
src/backend/utils/adt/dbsize.c