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 Simon Charette, 3 months ago

Triage Stage: UnreviewedAccepted

comment:2 by Sarah Boyce, 2 months ago

Has patch: set

comment:3 by Sarah Boyce, 2 months ago

Triage Stage: AcceptedReady for checkin

comment:4 by Sarah Boyce <42296566+sarahboyce@…>, 2 months ago

Resolution: fixed
Status: assignedclosed

In f5ddd54:

Fixed #35704 -- Fixed reduction for AddIndex subclasses.

Note: See TracTickets for help on using tickets.
Back to Top