Skip to content

Instantly share code, notes, and snippets.

@AdrianoJS
Last active October 4, 2022 07:29
Show Gist options
  • Save AdrianoJS/7cccfe660c6b5b17f5af2b6862a125d3 to your computer and use it in GitHub Desktop.
Save AdrianoJS/7cccfe660c6b5b17f5af2b6862a125d3 to your computer and use it in GitHub Desktop.
CREATE USER cdcuser WITH PASSWORD 'cdcpassword' REPLICATION LOGIN;
CREATE ROLE replication_group WITH USER foouser, cdcuser;
GRANT CREATE ON DATABASE quant_core TO replication_group;
GRANT USAGE ON SCHEMA foo TO replication_group;
GRANT CREATE ON SCHEMA foo TO replication_group;
CREATE TABLE foo.cdc_heartbeat (
heartbeat bit
);
ALTER TABLE foo.cdc_heartbeat OWNER TO cdcuser;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment