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

Migrating sqlite to postgres #141

Open
valankar opened this issue Apr 7, 2024 · 3 comments
Open

Migrating sqlite to postgres #141

valankar opened this issue Apr 7, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@valankar
Copy link

valankar commented Apr 7, 2024

Is there perhaps a good way to migrate from sqlite to postgres? I used sqlite for a bit and it works well, though now I'm wondering if I should migrate. Thanks.

@valankar valankar added the enhancement New feature or request label Apr 7, 2024
@tezlm
Copy link

tezlm commented Apr 14, 2024

It might be as simple as sqlite3 /path/to/database.db .dump | psql databasename, since it doesn't look like any fancy datatypes are used. Though if sqlite3 is working fine, you don't really need to migrate since there isn't much data or any psql-specific features (unless you want all data in one place, ie. for backups.)

@valankar
Copy link
Author

Yeah I thought I should try that, but I noticed there might be some table differences between sqlite and postgres, e.g.:

-- only: postgres

@tezlm
Copy link

tezlm commented Apr 15, 2024

It looks like it's so that the same sql schema can be used with both postgres and sqlite while making use of each one's featureset. The data itself should be portable, you should https://tryitands.ee/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants