Use GRANT system to manage access to sensitive functions

Stephen Frost <sfrost@snowman.net>

Commit: 1574783b4ced0356fbc626af1a1a469faa6b41e1
Author: Stephen Frost <sfrost@snowman.net>
Date: 2016-04-07T01:45:32Z
Releases: 9.6.0
Use GRANT system to manage access to sensitive functions

Now that pg_dump will properly dump out any ACL changes made to
functions which exist in pg_catalog, switch to using the GRANT system
to manage access to those functions.

This means removing 'if (!superuser()) ereport()' checks from the
functions themselves and then REVOKEing EXECUTE right from 'public' for
these functions in system_views.sql.

Reviews by Alexander Korotkov, Jose Luis Tallon

Files

Documentation touched