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

Postgres support #1144

Open
artur9010 opened this issue Mar 28, 2024 · 5 comments
Open

Postgres support #1144

artur9010 opened this issue Mar 28, 2024 · 5 comments
Milestone

Comments

@artur9010
Copy link

Description

I saw a PR on walletd adding postgres support - SiaFoundation/walletd#57
it would be nice to also have it in renterd as some of users may prefer it over mysql/sqlite

Version

v1.0.6

What operating system are you running (e.g. Ubuntu 22.04, macOS, Windows 11)?

Ubuntu 22.04, kubernetes

Anything else?

No response

@github-project-automation github-project-automation bot moved this to Triage in Sia Mar 28, 2024
@ChrisSchinnerl
Copy link
Member

ChrisSchinnerl commented Mar 28, 2024

We are adding Postgres support in walletd because it doesn't have support for MySQL yet. We are considering adding support for Postgres to renterd as well but it probably won't happen short term.

Depends on #1134

@ChrisSchinnerl ChrisSchinnerl moved this from Triage to Backlog in Sia Mar 28, 2024
@toddfries
Copy link

I'm interested in pushing forward on renterd.
I am attempting to get postgresql working by reading the mysql bits and translating to postgresql fu.
If you have a better codebase, love to look, and if I my code gets scrapped for better upstream down the road, fine.
But sqlite is not useful for pushing renterd hard in the slightest.
You can see my (botched?) wip attempt at ttf-renterd fwiw.

@ChrisSchinnerl
Copy link
Member

You are obviously free to open a PR to add Postgres support but it wouldn't be wise to get started now since our database code is currently being migrated away from GORM. Meaning it's in a mixed state that is still under a lot of development.

If you want I can ping you here once the codebase is ready to get started on Postgres support.

@ChrisSchinnerl ChrisSchinnerl added this to the Unplanned milestone Sep 19, 2024
@cmdntd
Copy link

cmdntd commented Oct 4, 2024

Do you have instruction to convert from sqlite to postgres after then?
I also want to change into postgres.

Postgres will use for db and consensus?

@ChrisSchinnerl
Copy link
Member

We don't have any official instructions but you should be able to find existing tools and instructions which can help with that. I haven't used it yet but pgloader seems to be one of these tools.

Consensus will remain in BoltDB but any metadata and metrics would be stored in Postgres

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

4 participants