PostgreSQL runs commands create table test ( test integer primary key ); create index i1 on test(test); create index i2 on test(test); without any error. Now there are 3 same indexes on table. How to fix this so that duplicate indexes are not allowed ? Andrus.