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

[DNM] persist: implement Blob using Postgres and hook it up to sqllogictest #17382

Closed
wants to merge 2 commits into from

Conversation

danhhz
Copy link
Contributor

@danhhz danhhz commented Jan 27, 2023

On our test invocation my runtime goes from 0m16.084s -> 0m9.849s

Motivation

  • This PR adds a feature that has not yet been specified.

Tips for reviewer

Checklist

  • This PR has adequate test coverage / QA involvement has been duly considered.

  • This PR evolves an existing $T ⇔ Proto$T mapping (possibly in a backwards-incompatible way) and therefore is tagged with a T-proto label.

  • If this PR will require changes to cloud orchestration, there is a
    companion cloud PR to account for those changes that is tagged with
    the release-blocker label (example).

  • This PR includes the following user-facing behavior changes:

pub async fn open(config: PostgresBlobConfig) -> Result<Self, ExternalError> {
let pg_config: tokio_postgres::Config = config.url.parse()?;
let tls = make_tls(&pg_config)?;
let (mut client, conn) = tokio_postgres::connect(&config.url, tls)
Copy link
Contributor

Choose a reason for hiding this comment

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

This would certainly need to be able to reconnect, so should either the actual connection and checking in the Blob impl functions, or else use deadpool or something.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, I kinda felt like maybe it should share the pool with PostgresConsensus or something? didn't want to deal thinking through the tradeoffs for a demo, so just did the obvious thing

@danhhz
Copy link
Contributor Author

danhhz commented Jan 13, 2025

Cleaning up old PRs

@danhhz danhhz closed this Jan 13, 2025
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