I have a table named user in PostgreSQL which cannot be accessed until I specify the fully qualified name public.user. SHOW search_path
user
public.user
SHOW search_path
Let me guess, it works if you use:
SELECT * FROM "user";
But if you try: SELECT * FROM user; it returns your current username?
USER is a reserved word in both Postgres and standard SQL. Do not use as a table name.
USER