Repository navigation
Implement Logical Streaming Replication Protocol V4 - #5761
Merged
Merged
Conversation
roji
approved these changes
Jun 27, 2024
roji
left a comment
Member
There was a problem hiding this comment.
LGTM - but not sure about the protocol enum change - plus maybe we should start to try to be a bit more backwards-compatible... But nothing too important.
NinoFloris
reviewed
Jun 28, 2024
roji
approved these changes
Jul 1, 2024
roji
left a comment
Member
There was a problem hiding this comment.
All good from my side - I'd still add back the removed constructor with [Obsolete] (see comment). Other than that see merge conflicts.
Brar
force-pushed
the
Logical_Streaming_Replication_Protocol_V4
branch
from
July 1, 2024 10:34
e30d7b7 to
a5d532c
Compare
roji
reviewed
Jul 2, 2024
| public PgOutputReplicationOptions(string publicationName, ulong protocolVersion, bool? binary = null, bool? streaming = null, bool? messages = null, bool? twoPhase = null) | ||
| : this(new List<string> { publicationName ?? throw new ArgumentNullException(nameof(publicationName)) }, protocolVersion, binary, streaming, messages, twoPhase) | ||
| { } | ||
| [Obsolete("Please switch to the overloads that take a PgOutputProtocolVersion value instead.")] |
Member
There was a problem hiding this comment.
@Brar this looks odd - these are new constructor overloads which are [Obsolete]? I think the idea was to keep the original constructor (the one with bool? streaming and ulong protocolVersion), add [Obsolete] on it and just have it call the new one...
Brar
added a commit
that referenced
this pull request
Jul 8, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #5760
Since the
streamingreplication parameter is now an enum instead of a bool I adjustedPgOutputReplicationOptionsto follow that change wich is breaking change in our API.While breaking the API I also made the protocol version an enum.