$ open source · GPL-3.0 — need a commercial license? imqueue.com →

ColumnIndexOptions.name property

Name of the index.

Signature:

name: string;

Remarks

Defaults to the table, the column and the declaration's position on the model, so two indices on one column cannot collide. Naming it yourself is what makes it recognisable later in EXPLAIN output and in pg_indexes.