Skip to content

Commit

Permalink
refresh publication after ddl command is executed on logical replica
Browse files Browse the repository at this point in the history
  • Loading branch information
var77 committed Nov 19, 2024
1 parent c237954 commit eca4a54
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions model/lantern/lantern_resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ def listen_ddl_log
EXECUTE format('SET ROLE %I', NEW.session_user);
EXECUTE NEW.ddl_command;
RESET ROLE;
ALTER SUBSCRIPTION sub_#{ubid} REFRESH PUBLICATION;
RETURN NEW;
END;
$$ LANGUAGE plpgsql;
Expand Down

0 comments on commit eca4a54

Please sign in to comment.