set synchronous_commit to local when creating roles

This commit is contained in:
Alexander Kukushkin
2015-11-12 12:20:05 +01:00
parent d39d297d92
commit 13cb8e7402
+1
View File
@@ -559,6 +559,7 @@ recovery_target_timeline = 'latest'
def create_or_update_role(self, name, password, options):
self.query("""DO $$
BEGIN
SET local synchronous_commit = 'local';
PERFORM * FROM pg_authid WHERE rolname = %s;
IF FOUND THEN
ALTER ROLE "{0}" WITH LOGIN {1} PASSWORD %s;