In my Postgres database i have this table:
CREATE TYPE address_type AS (
name text,
street text,
houseno integer );
CREATE TABLE person (
address address_type,
count integer );
I need to fetch meta data of the fields for address_type.
I have been through the documentation and this and it's likes but getting just the column name and it's datatype is not enough for me, i need to get the meta data for the fields of the column as well, like, what all fields the struct has (name, street, houseno) and what are their types (text, text, int).
Can someone please guide me in this regard?
Is it even feasible at all?