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

Commit 8e9f787

Browse files
committed
Fix mistypings in comments
1 parent 1124c0c commit 8e9f787

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pg_shardman--1.0.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ BEGIN
294294
rm_node_id, node.id,
295295
node.id, rm_node_id,
296296
rm_node_id, node.id);
297-
-- Subscription with associated slot can not be droped inside block, but if we do not override syncronous_commit policy,
297+
-- Subscription with associated slot can not be dropped inside block, but if we do not override synchronous_commit policy,
298298
-- then this command will be blocked waiting for sync replicas. So we need first do unbound slot from subscription.
299299
-- But it is possible only for disabled subscriptions. So we have to perform three steps: disable subscription, unbound slot, drop subscription.
300300
alts := format('%s{%s:ALTER SUBSCRIPTION sub_%s_%s DISABLE;ALTER SUBSCRIPTION sub_%s_%s SET (slot_name=NONE)}{%s:ALTER SUBSCRIPTION sub_%s_%s DISABLE;ALTER SUBSCRIPTION sub_%s_%s SET (slot_name=NONE)}',
@@ -860,7 +860,7 @@ DECLARE
860860
src text;
861861
new_master bool;
862862
BEGIN
863-
-- Check if valid node ID is passed and get connectoin string for this node
863+
-- Check if valid node ID is passed and get connection string for this node
864864
SELECT connection_string INTO conn_string FROM shardman.nodes WHERE id=master_node_id;
865865
IF conn_string IS NULL THEN
866866
RAISE EXCEPTION 'There is no node with ID % in the cluster', master_node_id;
@@ -952,7 +952,7 @@ $$ LANGUAGE plpgsql;
952952

953953
-- Move replica to other node. This function is able to move replica only within replication group.
954954
-- It initiates copying data to new replica, disables logical replication to original replica,
955-
-- waits completion of initial table sync and then removes old replca.
955+
-- waits completion of initial table sync and then removes old replica.
956956
CREATE FUNCTION mv_replica(mv_part_name text, src_node_id int, dst_node_id int)
957957
RETURNS void AS $$
958958
DECLARE
@@ -1290,6 +1290,6 @@ $$ LANGUAGE plpgsql;
12901290

12911291
CREATE FUNCTION deny_access() RETURNS trigger AS $$
12921292
BEGIN
1293-
RAISE EXCEPTION 'Access to moving parition is temporary denied';
1293+
RAISE EXCEPTION 'Access to moving partition is temporary denied';
12941294
END
12951295
$$ LANGUAGE plpgsql;

0 commit comments

Comments
 (0)