I have a composite type pin:
CREATE TYPE public.pin AS
(
id uuid,
name text,
);
And a table device:
CREATE TABLE public.devices
(
name text COLLATE pg_catalog."default" NOT NULL,
pins pin[] NOT NULL
)
How do I write a query to select the pin.name from the devices table where pin.id is equal to a known id?