Created
October 21, 2022 15:51
-
-
Save dsouzajude/289b1b5f274dacac851f9c627779958f to your computer and use it in GitHub Desktop.
Create a database replication user
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Create replication user | |
CREATE USER rep_user WITH replication PASSWORD <PASSWORD>; | |
-- Grant SELECT and USAGE | |
GRANT SELECT ON ALL TABLES IN SCHEMA <SCHEMA> TO rep_user; | |
GRANT USAGE ON SCHEMA <SCHEMA> TO rep_user; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment