Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gC1xH-0006iE-TY for psycopg@arkaria.postgresql.org; Mon, 15 Oct 2018 12:26:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gC1xG-00026f-80 for psycopg@arkaria.postgresql.org; Mon, 15 Oct 2018 12:26:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gC1xG-00026Y-3E for psycopg@lists.postgresql.org; Mon, 15 Oct 2018 12:26:38 +0000 Received: from mail.dndg.it ([178.32.136.2]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gC1xC-0000Xr-87 for psycopg@lists.postgresql.org; Mon, 15 Oct 2018 12:26:37 +0000 Received: from [10.94.33.108] (93-50-194-114.ip153.fastwebnet.it [93.50.194.114]) by mail.dndg.it (Postfix) with ESMTPSA id F09D7A02C4 for ; Mon, 15 Oct 2018 12:32:01 +0000 (UTC) Subject: Re: Feature branches merged to master for 2.8 release To: psycopg@lists.postgresql.org References: <1878453370.14916776.1539604797985@mail.yahoo.com> From: Federico Di Gregorio Organization: DNDG srl Message-ID: <62b46b76-ce7f-6b89-b5ad-d0f2c2533432@dndg.it> Date: Mon, 15 Oct 2018 14:26:32 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: it-IT Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SURBL_BLOCKED, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 10/15/2018 02:09 PM, Daniele Varrazzo wrote: > On Mon, Oct 15, 2018 at 1:00 PM Christian Ferrari wrote: >> Hi Daniele, >> what about the "_get_native_connection()" ? > That's the "capsule", and yes, I'd like to have it in 2.8. I think > Federico has already code in a branch. I think we are only wondering > whether to add one on the cursor to retrieve the native result. I > think we should: it would have been useful e.g. in cases like #661. We > have now exposing a way to retrieve the requested info but, if we had > had the capsule with the PGresult pointer, the OP could have used > ctypes or cffi to use the function from the libpq in the meantime. Yes, I'll merge that tomorrow (no time today). I was for a name without the underscore but the MySQL guy has a point where he says that the client code should be warned that the driver can't guarantee API stability in this case (what if PGconn changes?). So, maybe `_get_native_connection()` is OK. federico -- Federico Di Gregorio federico.digregorio@dndg.it DNDG srl http://dndg.it Il panda ha l'apparato digerente di un carnivoro (e.g., di un orso). Il panda ha scelto di cibarsi esclusivamente di germogli di bambù. Quindi, il panda è l'unico animale vegano del pianeta. Il panda merita di estinguersi. -- Maria, Alice, Federico