Postgresql tables exists, but getting “relation does not exist” when querying

后端 未结 8 2306
没有蜡笔的小新
没有蜡笔的小新 2020-11-30 23:22

I have a postgresql db with a number of tables. If I query:

SELECT column_name
FROM information_schema.columns
WHERE table_name=\"my_table\";
8条回答
  •  一个人的身影
    2020-11-30 23:58

    In my case, the dump file I restored had these commands.

    CREATE SCHEMA employees;
    SET search_path = employees, pg_catalog;
    

    I've commented those and restored again. The issue got resolved

提交回复
热议问题