Luis Alfredo Lorenzo
12/06/2021, 8:00 PMDatabase error code: 25001
Database error:
ERROR: CREATE INDEX CONCURRENTLY cannot run inside a transaction block
janpio
CREATE INDEX CONCURRENTLY
?Luis Alfredo Lorenzo
12/07/2021, 2:41 PMCREATE INDEX CONCURRENTLY
statements:
CREATE INDEX CONCURRENTLY "UserEventFlags_eventId_idx" ON "UserEventFlags"("eventId");
...
Richard Kaufman-López
12/08/2021, 3:22 PMjanpio
janpio
Matt Hoffman
03/21/2022, 1:53 PMjanpio
Matt Hoffman
03/21/2022, 6:09 PMjanpio
CREATE INDEX CONCURRENTLY
- so that would be great if you could create it.janpio
janpio
janpio
COMMIT
the previous transaction, then run the CREATE INDEX CONCURRENTLY
and then start another transaction - maybe you can "escape" the transaction context this way. [Might also just explode when you actually try that 😛 ])Matt Hoffman
03/22/2022, 1:20 PMCOMMIT
to the beginning of my migration yesterday, but it failed with the same error. Will create a feature request for this today.Jeff Hastings
09/13/2022, 12:41 PMJeff Hastings
09/13/2022, 12:42 PM