Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l9qlh-0004g1-Mm for psycopg@arkaria.postgresql.org; Wed, 10 Feb 2021 14:47:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l9qlg-0003rK-Jz for psycopg@arkaria.postgresql.org; Wed, 10 Feb 2021 14:47:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l9qlg-0003rC-8t for psycopg@lists.postgresql.org; Wed, 10 Feb 2021 14:47:00 +0000 Received: from mail1.dalibo.net ([212.83.143.11] helo=mail.dalibo.com) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l9qle-0003gN-7j for psycopg@postgresql.org; Wed, 10 Feb 2021 14:46:59 +0000 Received: from [192.168.0.29] (lan31-5-82-234-69-236.fbx.proxad.net [82.234.69.236]) by mail.dalibo.com (Postfix) with ESMTPSA id 5065820387; Wed, 10 Feb 2021 15:46:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dalibo.com; s=a; t=1612968415; bh=UrFjzEhUkzW0egr3T1LQrMZJmMqnMcZGwalNNenzNPM=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=ewwfjwsNQK+zzhBB3oidY4ObpiwcuWUqAVBSSdwd7JVaWvRUHoTBGPTowGTs8czNG 8x7eL/mIyVhE/sxttpUKFV7V3nva+l/efnDlCQFTLQT/b50Q9MHV1TdOIcBlbdv97i eGLRlJtq8Ai2qc//jQ+D/lkcst14wA/nw4839d78= Subject: Re: about client-side cursors To: Daniele Varrazzo Cc: psycopg@postgresql.org References: <20210203161548.vkhu3qkpvmgvyhik@dalibo.com> From: Denis Laxalde Message-ID: <921417ec-6fc6-a622-b47f-fd5edccfd9c1@dalibo.com> Date: Wed, 10 Feb 2021 15:46:54 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Daniele Varrazzo a écrit : > So, in the server-side branch, I've made the function non-async on > AsyncConnection too. This makes also context manager better to use, as > now you can do: > > async with aconn.cursor() as cur: > # use it > > whereas previously it would have taken an `async with await aconn.cursor()`. > > I assume the change is welcome, but please let me know if this is not the case. Yes, that change is welcome. Thanks!