-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 15 requires a Schema during installation #12768
Comments
I believe we are currently documenting the lowest netbox supported Postgres version in our documentation. This "secure schema" pattern isn't something netbox really requires. NetBox, from a database perspective, is a single user application. It would make far more sense to instead do this the third point recommended under Usage Patterns:
This would instead change the instructions to (I think, I would need to confirm):
|
It makes sense. Certainly, installing a second application on the same database as NetBox is not a standard installation. I've tested your commands, they work on a new installation. You just need to add a missing |
Awesome, thanks for testing. I would say we should update the docs with the extra step(s) required for this change. |
Hello. Happy to prepare a PR for this, if you want to assign this issue to me. |
Change Type
Correction
Area
Installation/upgrade
Proposed Changes
With the next Debian release coming with Postgres 15 as the default version, there is an interesting change for the configuration of the database for Django. With the current installation steps, you have a "permission denied for schema public" error during the initial migration.
I'll paraphrase my source: https://gist.github.com/axelbdt/74898d80ceee51b69a16b575345e8457
In Postgres 15 release announcement:
In practice, it means that the configuration block in
configuration_example.py
for the database should be changed to:and in the instructions to create the database in PostgreSQL Database Installation:
As far as I know, these changes are also compatible with Postgres <15. Also, I have not found any bug or issue with this configuration on my test server with Postgres 15.
I do not have (yet) the systems needed to test what happens during a migration from an older Postgres version to Postgres 15 and if some specific actions would be required.
The text was updated successfully, but these errors were encountered: