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

Add docs for Postgres standalone setup #8343

Merged
merged 18 commits into from
Mar 31, 2024

Conversation

mmomjian
Copy link
Contributor

This is a common source of issues with installations. Hoping to start consolidating the commands required in this article to have a place to point people to.

@mertalev appreciate your eyes

Copy link
Contributor

@mertalev mertalev left a comment

Choose a reason for hiding this comment

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

Thanks for working on this! We were actually just talking about making a page for this.

docs/docs/administration/postgres-standalone.md Outdated Show resolved Hide resolved
docs/docs/administration/postgres-standalone.md Outdated Show resolved Hide resolved
docs/docs/administration/postgres-standalone.md Outdated Show resolved Hide resolved
docs/docs/administration/postgres-standalone.md Outdated Show resolved Hide resolved
docs/docs/administration/postgres-standalone.md Outdated Show resolved Hide resolved
docs/docs/administration/postgres-standalone.md Outdated Show resolved Hide resolved
docs/docs/administration/postgres-standalone.md Outdated Show resolved Hide resolved
docs/docs/administration/postgres-standalone.md Outdated Show resolved Hide resolved
mmomjian and others added 5 commits March 28, 2024 20:59
Co-authored-by: Mert <101130780+mertalev@users.noreply.github.com>
Co-authored-by: Mert <101130780+mertalev@users.noreply.github.com>
Co-authored-by: Mert <101130780+mertalev@users.noreply.github.com>
Co-authored-by: Mert <101130780+mertalev@users.noreply.github.com>
Co-authored-by: Mert <101130780+mertalev@users.noreply.github.com>
@jrasm91 jrasm91 added the documentation Improvements or additions to documentation label Mar 29, 2024
@mmomjian
Copy link
Contributor Author

Thanks for working on this! We were actually just talking about making a page for this.

Sure thing! I think I made all those updates, lmk what you think.

Planning to write a guide in the future about setting up streaming database backups
@mmomjian
Copy link
Contributor Author

@mertalev just tested this. I don't think the pg_vector_index_stat is created initially. I also tried adding the extension outside of a transaction block, and had the same behavior. We might want to try the ALTER DEFAULT method?

trash1=# BEGIN;
BEGIN
trash1=*# CREATE EXTENSION vectors;
CREATE EXTENSION earthdistance CASCADE;
CREATE EXTENSION
NOTICE:  installing required extension "cube"
CREATE EXTENSION
trash1=*# \d
Did not find any relations.
trash1=*# GRANT SELECT ON TABLE pg_vector_index_stat to postgres;
ERROR:  relation "pg_vector_index_stat" does not exist
trash1=!# COMMIT;
ROLLBACK

Copy link
Contributor

@mertalev mertalev left a comment

Choose a reason for hiding this comment

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

Looks good!

@mertalev
Copy link
Contributor

mertalev commented Mar 31, 2024

That's interesting. We can go with ALTER DEFAULT if it isn't created immediately.

@alextran1502 alextran1502 merged commit 8e5695f into immich-app:main Mar 31, 2024
23 checks passed
@mmomjian mmomjian deleted the doc-postgres branch March 31, 2024 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants