It’s really annoying to see people write that Postgres has a “primary index” and “secondary indexes”. No. That’s not what those words mean. Every index in Postgres is a secondary index.
replies(1):
[0]: https://www.postgresql.org/docs/current/ddl-constraints.html