I have a table called Foo, which I'm trying to add a column "bar" to. Using psycopg2 in python, my function call is
cursor.execute('ALTER TABLE "Foo" ADD COLUMN bar text')
However, I get the following error:
relation "Foo" does not exist
I also tried putting the schema "public" before it to no avail. What am I doing wrong? Thanks.
Edit:
CraigRinger's command \dt *.?oo
yielded No matching relations found
\dt *.foo
and \dt *.Foo
both yielded the following output:
List of relations
Schema |Name|Type |Owner
-------+----+-----+--------
public |foo |table|postgres