#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. -- 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 django-updates+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/django-updates/01070196b0ca275f-3d24387c-3c80-4af8-bb32-8d60d2907ea0-000000%40eu-central-1.amazonses.com.