Skip to content

Initial working binary replication - #4024

Closed
Brar wants to merge 1 commit into
npgsql:mainfrom
Brar:BinaryReplication
Closed

Brar wants to merge 1 commit into
npgsql:mainfrom
Brar:BinaryReplication

Conversation

@Brar

@Brar Brar commented Oct 8, 2021

Copy link
Copy Markdown
Member

Preliminary PR in order to let you have an initial look at a possible Npgsql implementation of the upcoming (PG14) binary replication feature.
This is by no means production ready or even feature complete yet.
The main reason I'm doing a PR now is to get some feedback about some warts the current implementation has, before moving on to finish it.
I still would like to ship this with Npgsql 6 but this might fail as I've a lot of other things going on right now.

Warts:

ToDos:

  • Use ReplicationDataRecord instead of ReadOnlyMemory<TupleData> in
    • FullDeleteMessage
    • FullUpdateMessage
    • IndexUpdateMessage
    • KeyDeleteMessage
    • UpdateMessage
  • Better test coverage (at least test it once with type handlers from plugins to ensure that this works conceptually).

@Brar
Brar force-pushed the BinaryReplication branch from 89ab7ea to 85caad8 Compare October 17, 2021 14:39

@roji roji left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Started to look at this - looks good @Brar.

Just posting some thoughts here, also shared some ideas offline.

@roji

roji commented Oct 25, 2021

Copy link
Copy Markdown
Member

Work continuing in #4064

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