In AbstractJdbc1DatabaseMetaData.getIndexInfo(), the query needs to also be sorted by ORDINAL_POSITION as the final field in the ORDER BY clause. -pete
pgsql-jdbc by date:
Соглашаюсь с условиями обработки персональных данных