Before you create a PostgreSQL workspace
Creating a source database account
--create a user. It's better to use a user with limited permissions as opposed to an rds_superuser
CREATE USER tonic WITH PASSWORD 'tonic_password';
--ensure that the tonic user gets the correct access to new tables as they are added
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO tonic;
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT USAGE ON SEQUENCES TO tonic;
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON SEQUENCES TO tonic;
--add USAGE GRANTs on all schemas in the DB
GRANT USAGE ON SCHEMA public TO tonic;
--add SELECT and GRANTs ON ALL TABLES in each schema in the DB.
GRANT SELECT ON ALL TABLES IN SCHEMA public TO tonic;
--add USAGE GRANTs on all sequences in the DB
GRANT USAGE ON ALL SEQUENCES IN SCHEMA public TO tonic;
--add SELECT GRANTs on all sequences in each schema
GRANT SELECT ON ALL SEQUENCES IN SCHEMA public TO tonic; Creating a destination database account
Configuring handling of infinity date and time values
Default behavior
Disabling the default behavior
Example
Configuring whether Structural creates the destination database schema
Last updated
Was this helpful?