#23954 closed Bug (fixed)
migrations doesnt create {text|varchar}_pattern_ops for postgres indexes
| Reported by: | adityagupta104 | Owned by: | Claude Paroz | 
|---|---|---|---|
| Component: | Migrations | Version: | 1.7 | 
| Severity: | Release blocker | Keywords: | postgres indexes pattern_ops | 
| Cc: | Triage Stage: | Accepted | |
| Has patch: | no | Needs documentation: | no | 
| Needs tests: | no | Patch needs improvement: | no | 
| Easy pickings: | no | UI/UX: | no | 
Change History (5)
comment:1 by , 11 years ago
| Severity: | Normal → Release blocker | 
|---|---|
| Triage Stage: | Unreviewed → Accepted | 
comment:2 by , 11 years ago
Claude has done some work in moving more DatabaseCreation functionality to the schema editor in PR 3220. I've asked if he might be able to create a patch that would be appropriate for backporting based on that work.
comment:3 by , 11 years ago
| Owner: | changed from to | 
|---|---|
| Status: | new → assigned | 
comment:4 by , 11 years ago
| Resolution: | → fixed | 
|---|---|
| Status: | assigned → closed | 
  Note:
 See   TracTickets
 for help on using tickets.
    
Hi,
I can indeed reproduce this on 1.7 and master.
It seems that tests were added for the
varchar_patter_opsafter #12234 [1] but they still pass (probably because they don't use the same codepath that the migrations framework uses).This might be a serious performance issue so I'm upping the severity to "release blocker".
Thanks!
[1] https://github.com/django/django/blob/master/tests/indexes/tests.py