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

Fix FATAL: role "root" does not exist #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JorgeMadson
Copy link

@JorgeMadson JorgeMadson commented Sep 18, 2024

This changes fix the error FATAL: role "root" does not exist.
Why?
You need to set the PGUSER environment variable, because psql and pg_isready are two different (although related) programs which have different logic of environment lookup (one looks for POSTGRES_USER, the other one – for PGUSER)
Source: https://stackoverflow.com/a/77171779/6391134

You need to set the PGUSER environment variable, because psql and pg_isready are two different (although related) programs which have different logic of environment lookup (one looks for POSTGRES_USER, the other one – for PGUSER)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant