I have a users table, I see it in pgadmin4, but for some reason when I use psql and try to run list users, I get the following error:
Relation “users” does not exist.
This will happen if the psql user does not have schema level privileges. This error message can be misleading.
To solve this issue, try connecting using psql with an admin user and run:
1.
GRANT USAGE ON SCHEMA public TO <non-admin-user>;
GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA public TO <non-admin-user>;
You need to put table name in quotes. And, it is case sensitive:
SELECT * FROM "Users";