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\";
The error can be caused by access restrictions. Solution:
GRANT ALL PRIVILEGES ON DATABASE my_database TO my_user;