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
foo? check the last paragraph of section 4.1.1psqlwhat's the output of\dt *.?oo?\dt *.foo?public\dt *.fooand you did see a table, then it must be namedfoonotFoo. Could you update your question to include the \dt command you gave and the complete output you got?