File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -664,9 +664,8 @@ CREATE FUNCTION readonly_table_on(relation regclass)
664
664
RETURNS void AS $$
665
665
BEGIN
666
666
-- Create go away trigger to prevent any modifications
667
- PERFORM shardman .readonly_table_off (relation);
668
- PERFORM shardman .create_modification_triggers (relation, ' shardman_readonly' ,
669
- ' shardman.go_away()' );
667
+ -- PERFORM shardman.readonly_table_off(relation);
668
+ -- PERFORM shardman.create_modification_triggers(relation, 'shardman_readonly', 'shardman.go_away()');
670
669
END
671
670
$$ LANGUAGE plpgsql STRICT;
672
671
CREATE FUNCTION go_away () RETURNS TRIGGER AS $$
@@ -689,9 +688,8 @@ CREATE FUNCTION readonly_replica_on(relation regclass)
689
688
BEGIN
690
689
RAISE DEBUG ' [SHMN] table % made read-only for all but apply workers' ,
691
690
relation;
692
- PERFORM shardman .readonly_replica_off (relation);
693
- PERFORM shardman .create_modification_triggers (
694
- relation, ' shardman_readonly_replica' , ' shardman.ror_go_away()' );
691
+ -- PERFORM shardman.readonly_replica_off(relation);
692
+ -- PERFORM shardman.create_modification_triggers(relation, 'shardman_readonly_replica', 'shardman.ror_go_away()');
695
693
END $$ LANGUAGE plpgsql STRICT;
696
694
-- This function is impudent because it is used as both stmt and row trigger.
697
695
-- The idea is that we must never reach RETURN NEW after stmt row trigger,
You can’t perform that action at this time.
0 commit comments