diff --git a/tortoise/backends/psycopg/client.py b/tortoise/backends/psycopg/client.py index 75f204967..8e622ff1b 100644 --- a/tortoise/backends/psycopg/client.py +++ b/tortoise/backends/psycopg/client.py @@ -85,7 +85,9 @@ async def create_connection(self, with_db: bool) -> None: ) async def create_pool(self, **kwargs) -> AsyncConnectionPool: - return AsyncConnectionPool(**kwargs) + pool = AsyncConnectionPool(open=False, **kwargs) + await pool.open() + return pool async def db_delete(self) -> None: try: