Closed DoubleDi closed 2 years ago
Maybe problem of asyncpg
This can be fixed by using fetch()
instead of its variations (fetchval()
..) when using asyncpg
.
This is likely the problematic line: https://github.com/tortoise/tortoise-orm/blob/aa44d5a28737f08c39e98a94f0d741139ecb5fdb/tortoise/backends/asyncpg/client.py#L108
Just something I've worked around in my own library, but was checking out Tortoise.
Actually, seems like CockroachDB works on latest versions of everything. Using aerich migrations right now.
@DoubleDi are you still experiencing the "multiple active portals" issue?
Just a heads up, ideally Cockroach DB support would have USING HASH
on sequential columns (Ex: SERIAL NOT NULL PRIMARY KEY
), unless of course this makes it in: https://github.com/cockroachdb/cockroach/issues/78049
Currently the migrator does not work with hash sharded indexes on Cockroach, sadly.
Hi @long2ice! We are using cockroachDB with a postgresql API with tortoise. Unfortunately the current version of upgrade command does fail with this error.
It seems, that multiple active portals (open cursors) are currently not supported. Is it possible to tweak the migrations, to avoid it. It would make tortoise fully compatible to cockcroachDB.