This is similar to Column data types for materialized views? but I need more data (not just data type). I would like to have the same kind of query that I do for tables/views but for materialized views.
SELECT column_name, data_type, character_maximum_length,
character_octet_length, numeric_precision, numeric_precision_radix,
numeric_scale, datetime_precision, interval_type, interval_precision
FROM information_schema.columns
WHERE table_schema = '{}'
AND table_name = '{}'
order by ordinal_position
Does anyone have something like this? Column names in pg_attribute are very cryptic.