-- based on https://github.com/pgexperts/pgx_scripts/blob/master/indexes/fk_no_index.sql select * from fks_with_no_index order by 1,2;