Fixed index creation on PostgreSQL