mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
parent
00f9090928
commit
0c5548f9d1
1 changed files with 21 additions and 0 deletions
|
@ -253,6 +253,27 @@ def psql_query(query, user=None, host=None, port=None, maintenance_db=None,
|
|||
WITH updated AS (UPDATE pg_authid SET rolconnlimit = 2000 WHERE
|
||||
rolname = 'rolename' RETURNING rolconnlimit) SELECT * FROM updated;
|
||||
|
||||
query
|
||||
The query string.
|
||||
|
||||
user
|
||||
Database username, if different from config or default.
|
||||
|
||||
host
|
||||
Database host, if different from config or default.
|
||||
|
||||
port
|
||||
Database port, if different from the config or default.
|
||||
|
||||
maintenance_db
|
||||
The database to run the query against.
|
||||
|
||||
password
|
||||
User password, if different from the config or default.
|
||||
|
||||
runas
|
||||
User to run the command as.
|
||||
|
||||
CLI Example:
|
||||
|
||||
.. code-block:: bash
|
||||
|
|
Loading…
Add table
Reference in a new issue