-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Unable to use Postgresql 11 as a storage backend #6823
Comments
Hi @evitalis, We have automated tests that exercise the Postgres storage backend. Currently they're using the 11.1 pg docker image, and they're passing. Also, I recently helped get HA support for the Postgres backend merged to master (not yet available in a release) and manually tested with pg 11 without any problems. What is the error you're seeing? |
@ncabatoff |
That's the entire line? The line of code in question is return nil, errwrap.Wrapf("failed to check for native upsert: {{err}}", err) where // Determine if we should use an upsert function (versions < 9.5)
var upsert_required bool
upsert_required_query := "SELECT current_setting('server_version_num')::int < 90500"
if err := db.QueryRow(upsert_required_query).Scan(&upsert_required); err != nil {
return nil, errwrap.Wrapf("failed to check for native upsert: {{err}}", err)
} You might try running
|
@ncabatoff I did another test using 11.2 on Fedora 30 and it seemed fine. Not sure what happened before I opened this issue. I am going to close it and will open a new one if I run into the issue again. Next time I should be able to have a copy of any output for you. |
Describe the bug
Duplicate of #3949 vault will not start using a postgresql 11 backend. Both are clean install on a clean OS installation. The documentation does not detail what version of Postgresql (or any storage backend) are required or supported.
I do not know Go and as such cannot do a PR, but this is a bug and so the issue shouldn't get closed until resolved.
To Reproduce
Steps to reproduce the behavior:
systemctl status vault
Expected behavior
Ability to use Postgresql 11 as a storage backend.
I also expect the storage documentation to list what versions of the storage applications are working/supported.
Environment:
vault status
): 1.1.2vault version
): 1.1.2Vault server configuration file(s):
Config is the example from the Vault deployment guide and Postgresql storage documentation.
Additional context
Documentation should have the information on supported versions for each storage backend as well to avoid this type of issue going forward.
The text was updated successfully, but these errors were encountered: