Postgres obtener índice definido en la tabla

SELECT
    tablename,
    indexname,
    indexdef
FROM
    pg_indexes
WHERE
    schemaname = 'public'
ORDER BY
    tablename,
    indexname;
Code language: JavaScript (javascript)
Xerothermic Xenomorph