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

XMIN for Query Replication #403

Merged
merged 6 commits into from
Sep 20, 2023
Merged

XMIN for Query Replication #403

merged 6 commits into from
Sep 20, 2023

Conversation

Amogh-Bharadwaj
Copy link
Contributor

@Amogh-Bharadwaj Amogh-Bharadwaj commented Sep 20, 2023

  • Support for XMIN as watermark column in QRep

You must type-cast the xmin column in the query of your QRep create-mirror command :

$$ SELECT * FROM mytable WHERE xmin::text::bigint BETWEEN {{.start}} AND {{.end}} $$

Fixes #397

@@ -53,6 +53,14 @@ func compareValues(prevEnd interface{}, start interface{}) int {
return 0
}
}
case uint32: //xmin
if prevEnd.(uint32) < uint32(v) {

Choose a reason for hiding this comment

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

🚫 [golangci] reported by reviewdog 🐶
unnecessary conversion (unconvert)

case uint32: //xmin
if prevEnd.(uint32) < uint32(v) {
return -1
} else if prevEnd.(uint32) > uint32(v) {

Choose a reason for hiding this comment

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

🚫 [golangci] reported by reviewdog 🐶
unnecessary conversion (unconvert)

@Amogh-Bharadwaj Amogh-Bharadwaj changed the title XMIN for QRep Append XMIN for Query Replication Sep 20, 2023
@iskakaushik iskakaushik merged commit 0e85c76 into main Sep 20, 2023
21 checks passed
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.

Feature Request: Allow xmin as an Incrementing Watermark Column for Query-based Replication
2 participants