Currently the value returned for `type` is arbitrary but it would be
better to set a standard values associated with each index types (like
using `Index.suffix` as suggested by Tim Graham). This discussion might
make it more clear - https://github.com/django/django/pull/7046
#discussion-diff-74431956
--
Ticket URL: <https://code.djangoproject.com/ticket/27135>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* keywords: introspection => introspection db-indexes 1.11
* needs_better_patch: => 0
* needs_docs: => 0
* needs_tests: => 0
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/27135#comment:1>
Comment (by Tim Graham):
To address this for 1.11, I think all that's involved is having Django's
database introspection return 'idx' (`Index.suffix`) instead of 'btree'.
It looks like the other indexes (brin/gin for PostgreSQL) are already
returning `Index.suffix`.
Functionality wise, nothing changes since `inspectdb` doesn't consider
indexes yet (#27060) but this will set expectations for third-party
database backends and prevent them from having to change in a future
Django release.
--
Ticket URL: <https://code.djangoproject.com/ticket/27135#comment:2>
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/8069 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/27135#comment:3>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"b008f7cc5655d01817a8825e6317877b43c92181" b008f7c]:
{{{
#!CommitTicketReference repository=""
revision="b008f7cc5655d01817a8825e6317877b43c92181"
Fixed #27135 -- Made index introspection return Index.suffix.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27135#comment:4>
Comment (by Tim Graham <timograham@…>):
In [changeset:"2f6cdc09c4db46ad13ff736b93a975bcd587abf4" 2f6cdc0]:
{{{
#!CommitTicketReference repository=""
revision="2f6cdc09c4db46ad13ff736b93a975bcd587abf4"
[1.11.x] Fixed #27135 -- Made index introspection return Index.suffix.
Backport of b008f7cc5655d01817a8825e6317877b43c92181 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27135#comment:5>