Opened 3 months ago
Closed 2 months ago
#35704 closed Bug (fixed)
AddIndexConcurrently + RenameIndex incorrectly reduces to AddIndex
Reported by: | Adam Johnson | Owned by: | Adam Johnson |
---|---|---|---|
Component: | Migrations | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
A migration with AddIndexConcurrently
and RenameIndex
for the same index will turn into an AddIndex
. This means that, for example, optimizemigration
can change a migration to use extra locking, which may be unsafe.
(Discovered after working on some other missing optimizations in #35700.)
Change History (4)
comment:1 by , 3 months ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 3 months ago
Has patch: | set |
---|
comment:3 by , 2 months ago
Triage Stage: | Accepted → Ready for checkin |
---|
Note:
See TracTickets
for help on using tickets.
PR