Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 6dda1cc

Browse files
committed
bugfix: pg_reload_conf after setting synchronous_standby_names.
1 parent 2cc8c9b commit 6dda1cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shard.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ CREATE FUNCTION remove_sync_standby_c(standby text) RETURNS text
806806

807807
CREATE FUNCTION set_sync_standbys(standby text) RETURNS void AS $$
808808
BEGIN
809-
PERFORM pg_reload_conf();
810809
PERFORM shardman.alter_system_c('synchronous_standby_names', standby);
810+
PERFORM pg_reload_conf();
811811
RAISE DEBUG '[SHMN] sync_standbys set to %', standby;
812812
END $$ LANGUAGE plpgsql STRICT;

0 commit comments

Comments
 (0)