Opened 6 days ago

Last modified 5 days ago

#36377 assigned New feature

support `hints` for postgres contrib operations

Reported by: anthony sottile Owned by: Anthony Sottile
Component: Migrations Version: 5.2
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description (last modified by anthony sottile)

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:

operations = [BtreeGistExtension(hints={'tables': ['sentry_whatever']})]

(and updating the allow_migrate(...) calls inside CreateExtension)

Change History (4)

comment:1 by anthony sottile, 6 days ago

Description: modified (diff)

comment:2 by Simon Charette, 6 days ago

Component: UncategorizedMigrations
Easy pickings: set
Triage Stage: UnreviewedAccepted

That makes sense.

comment:3 by anthony sottile, 5 days ago

Has patch: set
Last edited 5 days ago by anthony sottile (previous) (diff)

comment:4 by Simon Charette, 5 days ago

Owner: set to Anthony Sottile
Status: newassigned
Note: See TracTickets for help on using tickets.
Back to Top