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 c5bc950 commit 4d7e276
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 4d7e276

Please sign in to comment.