public inbox for [email protected]  
help / color / mirror / Atom feed
From: Federico Di Gregorio <[email protected]>
To: [email protected]
Subject: Re: Feature branches merged to master for 2.8 release
Date: Mon, 15 Oct 2018 14:26:32 +0200
Message-ID: <[email protected]> (raw)
In-Reply-To: <CA+mi_8bSZw7CAFPOKyanYVu2_AbP-+gcUd8N7oD-oisgth6o6A@mail.gmail.com>
References: <CA+mi_8aVzn-4Ujuqg5aMduHjL1XQ3Y7sUU86s3p6shMefaPoSQ@mail.gmail.com>
	<[email protected]>
	<CA+mi_8bSZw7CAFPOKyanYVu2_AbP-+gcUd8N7oD-oisgth6o6A@mail.gmail.com>

On 10/15/2018 02:09 PM, Daniele Varrazzo wrote:
> On Mon, Oct 15, 2018 at 1:00 PM Christian Ferrari<[email protected]>  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                         [email protected]
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




view thread (20+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: Feature branches merged to master for 2.8 release
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox