-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
docs: default to sed pg_catalog for Linux, document restore/reset for PG bind mount #9021
Conversation
Regarding Windows I'd personally be fine with just leaving that out lmao. Alternatively we could also run that in the database container...? Not sure if that comes with sed preinstalled but I'd assume so. |
Why is this pg_catalog line wrong in the first place? Is that something we can fix further up? |
I think this is an upstream issue, not something we have control over. I could be wrong. link It seems like there are some workarounds but seems like it require a bigger refactor of the way we implement the extension. |
It could theoretically be fixed for future users if we changed |
Immich has superuser in the default deployment, yes? I have no qualms about adding an extra step for people (like myself) who run an external PG instance - we know what we signed up for. My suggestion would be to have some kind of permission check +log message that brings the container down if this extension change is unsuccessful, to alert the admin that a change need to be made. Adding these extensions already requires SU to begin with and is part of the prep instructions for a non-SU instance. |
Oh right, I forgot that these aren't trusted extensions so they need admin intervention anyway. I think we can update the instructions to include |
Will installing the extension into pg_catalog cause any issues for users or companies that run multiple instances of Immich in the same DB or alongside other services? I think an alternate option would be to run the migration and if it fails, simply log an error and expect that the DB admin can manage their own pg_restore with a search path change if needed. The data is all there, this just makes the restore process a little cleaner. Of course if it's no issue to have it in pg_catalog that doesn't hurt either. Requiring pg_catalog may provide a hindrance to certain deployments that may use managed DBs as well. |
Each database has its own For your suggestion, we can't just catch an exception and move on if a migration fails. All migrations are in the same transaction that will be aborted if anything throws an error. But it could be handled as a startup check outside of the migrations instead. |
Do you want me to remove the |
The |
Co-authored-by: Mert <101130780+mertalev@users.noreply.github.com>
sed
as default for restore - multiple issues of people trying to restore recently and having geocoding issues or errors.