Add postgresql.reload() function

This commit is contained in:
Lance Edgar 2019-10-29 20:55:24 -05:00
parent 5eea62688e
commit 56acb30008

View file

@ -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.