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

[Streaming Replication 5th] add connection configuration for Streaming Replication Protocol #56

Merged
merged 6 commits into from Sep 10, 2022

Conversation

osaxma
Copy link
Contributor

@osaxma osaxma commented Sep 9, 2022

This change simply allows running PostgreSQLConnection in replication mode in the following manner:

  final conn = PostgreSQLConnection(
    'localhost',
    5432,
    'postgres',
    username: 'postgres',
    password: 'postgres',
    replicationMode: ReplicationMode.logical,
  );

Tests were added which shows the use of useSimpleQueryProtocol (turning that off will make the test fail)


@osaxma osaxma marked this pull request as draft September 9, 2022 22:51
@osaxma
Copy link
Contributor Author

osaxma commented Sep 9, 2022

I just realized logicalDecodingPlugin isn't necessary since this is defined by the user when they start the replication process (i.e. when calling CREATE_REPLICATION_SLOT)...

I'll remove it since it doesn't make sense and then turn this as Ready for Review.

@osaxma osaxma marked this pull request as ready for review September 9, 2022 23:02
@isoos isoos merged commit f0fe101 into isoos:master Sep 10, 2022
@osaxma osaxma deleted the add_replication_config branch September 10, 2022 09:31
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.

None yet

2 participants