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

feat: Add postgresql support for OpenDAL #2815

Merged
merged 15 commits into from Aug 9, 2023
Merged

feat: Add postgresql support for OpenDAL #2815

merged 15 commits into from Aug 9, 2023

Conversation

Xuanwo
Copy link
Member

@Xuanwo Xuanwo commented Aug 8, 2023

This PR will add postgresql support for OpenDAL.


OHHHHHHH, why? It doesn't make sense to add SQL support in OpenDAL!

You are right. OpenDAL is designed for accessing unstructured data like local fs and s3. And database like postgresql is not good for such use cases. But it doesn't mean we can't do this.

We can store some small (for example, 4KiB) data in database in quick and easy way! We don't need to worry about mysql, pg, clickhouse, xxxdb anymore: use opendal and write data.

Maybe, I'm not convinced and still believe it's useless.

That's Ok. OpenDAL's design makes sure that adding a new service like pg won't affect your existing features at all. Postgresql will under services-postgresql feature and only users who enable this feature will need those code.

So, What's the performance?

We don't know about it so far. This PR just a start, we will try to do some bench to have a general idea about it's perf.

What's next?

I will add integration test to make this service works. And than we can try to add MySQL, SurrealDB and other dbs.

My current interest is to add databend support so that I can run databend on databend (aha, this is really useless, but funny)!

Signed-off-by: Xuanwo <github@xuanwo.io>
Signed-off-by: Xuanwo <github@xuanwo.io>
@Xuanwo Xuanwo requested a review from PsiACE as a code owner August 8, 2023 14:37
@Xuanwo Xuanwo marked this pull request as draft August 8, 2023 14:38
@PsiACE
Copy link
Member

PsiACE commented Aug 8, 2023

It sounds a bit crazy, but why not :)

Signed-off-by: Xuanwo <github@xuanwo.io>
Signed-off-by: Xuanwo <github@xuanwo.io>
Signed-off-by: Xuanwo <github@xuanwo.io>
Signed-off-by: Xuanwo <github@xuanwo.io>
Signed-off-by: Xuanwo <github@xuanwo.io>
Signed-off-by: Xuanwo <github@xuanwo.io>
Signed-off-by: Xuanwo <github@xuanwo.io>
Signed-off-by: Xuanwo <github@xuanwo.io>
Signed-off-by: Xuanwo <github@xuanwo.io>
@oowl
Copy link
Member

oowl commented Aug 9, 2023

It's a really really crazy idea! Next, Maybe we need to build OpenDAL on SQLite!

@Xuanwo
Copy link
Member Author

Xuanwo commented Aug 9, 2023

It's a really really crazy idea! Next, Maybe we need to build OpenDAL on SQLite!

Ok, let's expand OpenDAL to more open areas!

Signed-off-by: Xuanwo <github@xuanwo.io>
Signed-off-by: Xuanwo <github@xuanwo.io>
@Xuanwo Xuanwo marked this pull request as ready for review August 9, 2023 09:27
@Xuanwo Xuanwo requested a review from oowl as a code owner August 9, 2023 09:27
Copy link
Member

@silver-ymz silver-ymz left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Member

@suyanhanx suyanhanx left a comment

Choose a reason for hiding this comment

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

Great!

Copy link
Member

@oowl oowl left a comment

Choose a reason for hiding this comment

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

LGTM

@oowl oowl merged commit 66f98cd into main Aug 9, 2023
89 checks passed
@oowl oowl deleted the add-pg-support branch August 9, 2023 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants