-
Notifications
You must be signed in to change notification settings - Fork 67
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
Switch to PostgreSQL database? #107
Comments
Is the helpers to manage Postgres are stable yet ? |
Except some warnings to prevent, they look stable (and are being used in an official app). |
So, let's try then. |
Hello, |
Fortunately, Nextcloud has taken care of that migration use case! |
FWIW, I've tested such a migration more or less following this post. For me it worked perfectly. TL;DR I created a db nextclouddb and a user nextcloud in postgres and ran: sudo -u nextcloud php ./occ db:convert-type --all-apps --password "nextcloud" pgsql nextcloud localhost nextclouddb Apparently, to work correctly with the text app, you need Nextcloud 21.0.3. Also, for some reason at first I had this error
I fixed it by replacing |
It might be worthy to test with 2FA enabled, as someone reported having trouble with it when migrating. |
FYI 'dbport' in config.php doesn't get updated by the migration script. 3306->5432 in my case. The speed is so much better - if you're on the fence, do it (I was just trying to get away from the bizarre maintenance requirements of mysql). |
Just a quick question: do I need to modify any scripts to make the automated database backup keep working? As I suppose those will still be pointing to the MariaDB database? |
Hello, |
@lapineige : i guess it's still on the table, but considering the magnitude of the change, we have to be super-careful about it ... Maybe at least if we were in V2 packaging we could display a pre-upgrade disclaimer for this upgrade |
So V2 first :D #559 I suppose we have to make a lot of manual testing and so on... I'm asking to know if I could be testing this in an environment that is not for 100% dev use... |
#597 should be functional. |
Considering how PostgreSQL seems to have better performance than MySQL and to be more reliable than MySQL (especially on SD-based ARM devices), maybe that move (though complex to consider migration-wise!) should be discussed...
https://docs.nextcloud.com/server/13/admin_manual/configuration_database/linux_database_configuration.html
The text was updated successfully, but these errors were encountered: