#27935: BrinIndex.suffix for postgres longer 3 char
----------------------------------+------------------------------------
Reporter: Den | Owner: (none)
Type: Bug | Status: new
Component: contrib.postgres | Version: 1.11
Severity: Release blocker | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------+------------------------------------
Comment (by Mads Jensen):
The current model wasn't actually enough to trigger a failure for the
auto-generated name as the length of the indexed field is only 5
characters.
Either changing `suffix = brin` to `suffix = `brn`, or removing a
character from the hash so it's just five characters. Probably the first
is better?
{{{#!python
def test_name_auto_generation_fail(self):
# name of field must be at least 7 characters long to get to 30
characters
index = BrinIndex(fields=['datetimes'])
index.set_name_with_model(DateTimeArrayModel)
self.assertEqual(index.name, 'postgres_te_datetim_b1e2ca_brn')
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27935#comment:3>
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/064.8515cd70568d202ee3ad27769c5d08cc%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.