CREATE DATABASE contrib_regression_test_restore; \! psql contrib_regression_test_restore -c 'CREATE EXTENSION anon CASCADE;' NOTICE: installing required extension "tsm_system_rows" NOTICE: installing required extension "ddlx" CREATE EXTENSION \! psql contrib_regression_test_restore -c 'SELECT anon.start_dynamic_masking();' start_dynamic_masking ----------------------- t (1 row) \! pg_dump -Fc contrib_regression_test_restore > contrib_regression_test_restore.pgsql DROP DATABASE contrib_regression_test_restore; \! pg_restore -d postgres --role=postgres -C contrib_regression_test_restore.pgsql DROP DATABASE contrib_regression_test_restore;