#28783: Support for custom operator class for indexes
-------------------------------------+-------------------------------------
     Reporter:  vinay karanam        |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Database layer       |                  Version:  2.0
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:  postgres, operator   |             Triage Stage:
  class                              |  Unreviewed
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by vinay karanam):

 #28077 requires almost same amount of work. It is only asking operator
 support for `GinIndex`, whereas this adds support for any postgres index.
 We can close it in favour of this or retitle #28077 and close this ticket.

 Regarding code changes, even I was skeptical at first about adding
 `operator_class` to `Index.__init__()` but then I saw `Index.create_sql`
 accepts `using` kwarg which is only valid for postgres index.
 If necessary we can have a subclass `PGIndex` and move postgres specific
 options into this.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28783#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/072.073a6486a8c545c89e614db60ee00699%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to