Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameter for cdc with only snapshot #884

Merged
merged 2 commits into from
Dec 22, 2023
Merged

Conversation

Amogh-Bharadwaj
Copy link
Contributor

@Amogh-Bharadwaj Amogh-Bharadwaj commented Dec 22, 2023

This PR introduces a parameter - initial_copy_only which when set, will initiate CDC and exit after Snapshot Flow is complete. No Sync Flows will be called. By default this is set to false.

Screenshot 2023-12-22 at 10 15 30 PM

In the UI, this parameter is listed in the Advanced Settings section:
Screenshot 2023-12-22 at 10 51 13 PM

Validation for this parameter is set in both query layer and UI:

amogh=> CREATE MIRROR sfnosnappy1                                                                                                                                                                                                              
amogh-> FROM postgres_local TO sf_peer
amogh-> WITH TABLE MAPPING (
amogh(> public.oss2:public.oss2nexusso6,
amogh(> public.oss2ud1:public.oss2ud1nexusso6
amogh(> )
amogh-> WITH(
amogh(> do_initial_copy = false,
amogh(> snapshot_staging_path = '',
amogh(> initial_copy_only = true
amogh(> );
ERROR:  initial_copy_only is set to true, but do_initial_copy is set to false
Screenshot 2023-12-22 at 10 57 46 PM

This has been tested via UI and query layer and the happy path where it is not set it also tested.

@iskakaushik iskakaushik merged commit 0cb7abe into main Dec 22, 2023
12 checks passed
@serprex serprex deleted the support-only-snapshot branch July 19, 2024 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants