With TEIID-5533 the materialization of pg_attribute will expose all columns to any user. With TEIID-5236 the lazy materialization of pg_index and TEIID-5696 pg_proc will cache the results only for the initial user.
The materialization needs to be performed in a safer way to preserve the hidden metadata.