Skip to content

DROP INDEX CONCURRENTLY cannot run inside a transaction block #467

@nikita-davydov

Description

@nikita-davydov

Hello, hope you're all doing well!

I stuck with the problem of updating indexes using aerich, even with --in-transaction false, I'm getting the exception

asyncpg.exceptions.ActiveSQLTransactionError: DROP INDEX CONCURRENTLY cannot run inside a transaction block
tortoise.exceptions.TransactionManagementError: DROP INDEX CONCURRENTLY cannot run inside a transaction block

I see in the trace that it happens on the line aerich/init.py:190 - so it's for sure out of transaction block, how it could be solved?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions