Replies: 1 comment
-
|
Hi @smozely ! You can configure the snapshot to clean the target database. This will drop and recreate the relevant schema objects, which will give you the same effect as the truncate. You can enable it by:
source:
postgres:
[...]
snapshot:
schema:
[...]
pgdump_pgrestore:
clean_target_db: true # whether to clean the target database before restoring. Defaults to false
You can find more details and examples for the configuration options in the docs here, as well as the CLI flag options. Let us know if you have any other questions! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Wondering if it is possible for the snapshotting process to truncate the data in the target tables before doing insertion?
It's part of the process of doing overnight snapshots from our production environment to our lower environments, wanting to make it a clone, but it doesn't seem possible to have it truncate the data first?
Beta Was this translation helpful? Give feedback.
All reactions