Key idea
The connection boundary
Think in layers when diagnosing a problem: can the client connect, is it connected to the right database, and does that database contain the expected schema and table? A database name is not a schema name, and a psql meta-command is not SQL.