pgrepup
pgrepup copied to clipboard
Error with db name
If db name contains "-", we get an error
To fix this, edit
vim pgrepup/lib/python2.7/site-packages/pgrepup/helpers/replication.py
find
c.execute('GRANT CREATE ON DATABASE ' + db + ' TO ' + user)
and replace it with
c.execute('GRANT CREATE ON DATABASE ' + '"' + db + '"' + ' TO ' + user)