Is it possible to query the pg_catalog
schema of a remote Postgres server? I'm trying to access some simple statistics of a remote server. I've tried importing the foreign schema, but it fails on an anyarray column.
psql> IMPORT FOREIGN SCHEMA pg_catalog LIMIT TO (pg_stats) FROM SERVER myserver into myschema;
ERROR: column "most_common_vals" has pseudo-type anyarray
CONTEXT: importing foreign table "pg_stats"
I'm able to individually import tables that don't have anyarray columns.