﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
28077	Allow specifying custom operator classes for PostgreSQL indexes	IzyJeepee	Ian Foote	"Hello, 

I want use the GinIndex method to create a gin index with the django's migration. But while the migration, I have this errror : 

{{{
django.db.utils.ProgrammingError : data type character varying has no default operator class for access method ""gin""
HINT : You must specify an operator class ofr the index or define a default operator class for the data type.
}}}

This error may be resolved by enabling the btree_gin extension.

It is possible to pass the operator class during the index's creation ? For example : 

{{{
class Meta:
    indexes = [
        GinIndex(fields=['my_field'], name='my_index_gin', operator_class='my_operator')
    ]
}}}

Thanks"	New feature	closed	Database layer (models, ORM)	1.11	Normal	fixed	postgres, gin, operator, class		Accepted	1	0	0	0	0	0
