Skip to content

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