I am perplexed here. I have two environments, let's say TEST and PROD.
In both environments' Postgres DBs there is a view foo_view
visible in my DB client (DBeaver). However, only in PROD can I find that view in the system tables:
select * from information_schema.tables WHERE table_name = 'foo_view';
select * from information_schema.views WHERE table_name = 'foo_view';
When executed in PROD, the above SQL returns data that corresponds to the client rendering but not in TEST. I was not the DBA who introduced that view in either of the instances.
I am looking for an explanation as to which possible scenarios could lead to that view not being in the system tables but still visible in the client UI.