/* Create schema for Datafold to write temporary tables to.
This is the only schema where Datafold will modify anything in your environment.*/
CREATE SCHEMA datafold_tmp;
/* Since Redshift does not allow granting read-nonly access to ALL schemas which
Datafold needs to correctly work, you need to grant superuser level privilege to
CREATE USER datafold CREATEUSER PASSWORD 'SOMESECUREPASSWORD';
/* The following permission allows Datafold to pull SQL logs and construct
ALTER USER datafold WITH SYSLOG ACCESS UNRESTRICTED;