I have been working on a script in pgAdmin for a few days with an existing table. Now when I try to update the table from a command in my script I get a relation does not exist error. I can see the table in the object explorer tree and a right click to show the 100 rows of data works just fine. I also copied the select * limit 100 query to a new tab in pgadmin and it works, but if I copy it to my existing script then it throws the relation does not exist error. The script also works in Dbeaver. Any idea what is going on?
I have just copied my script to a new tab in pgAdmin and it has started working. I have the solution but would like to know why it happened.
relation does not existisn't very descriptive, and usually Postgres does a good job providing an error message that helps to quickly identify and fix the problem