Skip to content

Conversation

petrosagg
Copy link
Contributor

@petrosagg petrosagg commented Aug 21, 2024

Motivation

I tidied up our rust-postgres fork and also brought in all changes from upstream. This PR brings in those changes. The highlight of those changes is that logical replication support is now a clean extension of the low level CopyBoth mechanism exposed by this upstream PR rust-postgres/rust-postgres#778

Tips for reviewer

Checklist

  • This PR has adequate test coverage / QA involvement has been duly considered. (trigger-ci for additional test/nightly runs)
  • This PR has an associated up-to-date design doc, is a design doc (template), or is sufficiently small to not require a design.
  • If this PR evolves an existing $T ⇔ Proto$T mapping (possibly in a backwards-incompatible way), then it is tagged with a T-proto label.
  • If this PR will require changes to cloud orchestration or tests, there is a companion cloud PR to account for those changes that is tagged with the release-blocker label (example).
  • If this PR includes major user-facing behavior changes, I have pinged the relevant PM to schedule a changelog post.

@petrosagg petrosagg force-pushed the pg-dep-upgrade branch 5 times, most recently from 56bc699 to 6ac7000 Compare August 21, 2024 20:54
@petrosagg petrosagg changed the title DNM: test upgraded pg dependency *: upgrade postgres crates Aug 21, 2024
@petrosagg petrosagg force-pushed the pg-dep-upgrade branch 2 times, most recently from 084d1b8 to 5033f23 Compare August 26, 2024 08:10
@petrosagg petrosagg force-pushed the pg-dep-upgrade branch 3 times, most recently from ee3c7fb to d2f27eb Compare September 3, 2024 13:42
.map(|f| {
Ok((
f.type_(),
String::from_utf8_lossy(f.value_bytes()).into_owned(),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

.value() is now deprecated so we do the string conversion on our side

.unwrap()
.into_first();
.into_iter()
.find(|m| matches!(m, SimpleQueryMessage::Row(_)))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Simple queries were changed and an additional message specifying the resulting schema is emitted first, so we must filter for the Row event instead of assuming it's the first one

@petrosagg petrosagg marked this pull request as ready for review September 3, 2024 13:44
@petrosagg petrosagg requested review from a team and benesch as code owners September 3, 2024 13:44
@petrosagg petrosagg requested review from jkosh44 and rjobanp September 3, 2024 13:44
@petrosagg petrosagg merged commit 3c7178c into MaterializeInc:main Sep 3, 2024
1 check passed
@petrosagg petrosagg deleted the pg-dep-upgrade branch September 3, 2024 15:11
@github-actions github-actions bot locked and limited conversation to collaborators Sep 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants