#36377: support `hints` for postgres contrib operations
---------------------------------+-----------------------------------------
Reporter: anthony sottile | Type: New feature
Status: new | Component: Uncategorized
Version: 5.2 | Severity: Normal
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+-----------------------------------------
since they are ~effectively specialized `RunSql` operations it would be
nice if they support `hints=...` as well. at sentry we utilize this in
our database router to properly target sql-like operations during
migrations. without hints we don't know what database to apply the
migration operation to
something like:
```python
operations = [BtreeGistExtension(hints={'tables': ['sentry_whatever']})]
```
(and updating the `allow_migrate(...)` calls inside `CreateExtension`)
--
Ticket URL: <
https://code.djangoproject.com/ticket/36377>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.