I've been using Postgres 14 successfully, but now I'm stumped. I have a database and schema abc
which has tables.
\c abc
\dt -- shows tables
I made a new database/schema xyz
, but I cannot see the tables I made:
\c xyc
\dt
Did not find any relations.
If I use PgAdmin4 I can see xyz
's tables.
If I use DbVisualizer I can see xyz
's tables.
But if I use psql
all I get is Did not find any relations.
It doesn't seem to matter if I am user postgres
or myself (also superuser) in psql
.
I created those xyz
tables in PgAdmin4. Was that a mistake?
I've tried changing the owner of all the objects in the database or schema xyz
, but no matter what I try, I just can't "see" them if I'm using psql
.
Not sure if this sheds any light:
xyz-# \conninfo
You are connected to database "xyz" as user "postgres" via socket in "/tmp" at port "5432".
xyz=# \l
List of databases
Name | Owner | Encoding | Collate | Ctype | Access privileges
-----------+----------+----------+------------+------------+-----------------------
xyz | postgres | UTF8 | en_US.utf8 | en_US.utf8 | =Tc/postgres +
| | | | | postgres=CTc/postgres
abc | postgres | UTF8 | en_US.utf8 | en_US.utf8 |