PostgreSQL – Does psql \dt Cache Schema?

postgresqlpsql

When I have a session running in psql it does not show newly created tables (from another connection but for the current owner role).

If I re-login they show up. Do I need to refresh a psql cache somehow or is this related to transaction/sessions or cached permissions?

Best Answer

I think I found the problem, the other session did not only create those tables but also modified the Schema search path (which was not active in the existing session of course)