I've created a schema in my PostgreSQL database that Hibernate uses, creating tables, persisting entities and so on. After I updated my Ubuntu 14.04 to 16.04, I can't see the tables anymore. The applications that manipulate data in the schema and its tables can still do it, though.
Here is the output of some commands after I login using sudo -u postgres psql:
postgres=# \dt
No relations found.
postgres=# \dn
List of schemas
Name | Owner
--------+----------
jcat | postgres
public | postgres
(2 rows)
postgres=# \dn+
List of schemas
Name | Owner | Access privileges | Description
--------+----------+----------------------+------------------------
jcat | postgres | postgres=UC/postgres+|
| | =UC/postgres |
public | postgres | postgres=UC/postgres+| standard public schema
| | =UC/postgres |
(2 rows)
I've tried the following, from a few questions I aswers I found:
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA jcat TO public;
grant ALL on SCHEMA jcat to public;
but I still can't see my tables. Any hints?
Edit: here are the information requested.
postgres-# \d jcat.*
Did not find any relation named "jcat.*".
postgres-# show search_path
postgres-#
show search_pathgive you? What does\d jcat.*give you?;. Yourshow search_pathdid not actually run. But if\d jcat.*results in "did not find any relation" it means there are not tables in that schema. What do you get if you runselect table_name from information_schema.tables where table_schema = 'jcat';show search_path;shows 1 row:"$user", public. The select statement you just requested returns 0 rows.jcatschema.