Add postgresql.reload()
function
This commit is contained in:
parent
5eea62688e
commit
56acb30008
|
@ -54,6 +54,13 @@ def restart(c):
|
||||||
c.sudo('systemctl restart postgresql.service')
|
c.sudo('systemctl restart postgresql.service')
|
||||||
|
|
||||||
|
|
||||||
|
def reload(c):
|
||||||
|
"""
|
||||||
|
Reload config for the PostgreSQL database service
|
||||||
|
"""
|
||||||
|
c.sudo('systemctl reload postgresql.service')
|
||||||
|
|
||||||
|
|
||||||
def sql(c, sql, database='', port=None):
|
def sql(c, sql, database='', port=None):
|
||||||
"""
|
"""
|
||||||
Execute some SQL as the 'postgres' user.
|
Execute some SQL as the 'postgres' user.
|
||||||
|
|
Loading…
Reference in a new issue