PostgreSQL - granting privileges to all functions in schema not supported #49581
Labels
Execution-Module
Feature
new functionality including changes to functionality and code refactors, etc.
Milestone
Description of Issue/Question
It's appropriate in PostgreSQL to grant privileges to all functions within a schema. PostgreSQL syntax - GRANT EXECUTE ON ALL FUNCTIONS IN SCHEMA <schema_name> to <role_name>; This currently is not support in the postgresql module
When doing it via salt, the following is produced - GRANT EXECUTE ON FUNCTION ALL IN SCHEMA <schema_name> TO <role_name>.
Here is the line in the PostgreSQL module - https://github.com/saltstack/salt/blob/develop/salt/modules/postgres.py#L2947
Not sure why functions are handled differently than table and sequences.
Setup
Example:
Steps to Reproduce Issue
Versions Report
Salt Version:
Salt: 2018.3.2
Dependency Versions:
cffi: 1.11.2
cherrypy: unknown
dateutil: 2.7.2
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
ioflo: Not Installed
Jinja2: 2.10
libgit2: Not Installed
libnacl: Not Installed
M2Crypto: Not Installed
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.5.1
mysql-python: Not Installed
pycparser: 2.18
pycrypto: 2.6.1
pycryptodome: Not Installed
pygit2: Not Installed
Python: 2.7.5 (default, Apr 11 2018, 07:36:10)
python-gnupg: Not Installed
PyYAML: 3.12
PyZMQ: 15.3.0
RAET: Not Installed
smmap: Not Installed
timelib: Not Installed
Tornado: 4.2.1
ZMQ: 4.1.5
System Versions:
dist: centos 7.5.1804 Core
locale: UTF-8
machine: x86_64
release: 3.10.0-862.3.2.el7.x86_64
system: Linux
version: CentOS Linux 7.5.1804 Core
The text was updated successfully, but these errors were encountered: