From: | Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com> |
---|---|
To: | Federico Di Gregorio <fog(at)dndg(dot)it> |
Cc: | psycopg(at)lists(dot)postgresql(dot)org |
Subject: | Re: Integration of Psycopg with XTA |
Date: | 2018-10-04 10:32:38 |
Message-ID: | CA+mi_8YEtNM714FNtrexk_qK=oS7hs0fdXTgcGDSq3uuwfNXtg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | psycopg |
On Thu, Oct 4, 2018 at 11:24 AM Federico Di Gregorio <fog(at)dndg(dot)it> wrote:
>
> On 10/04/2018 12:13 PM, Daniele Varrazzo wrote:
> > On Thu, Oct 4, 2018 at 10:33 AM Federico Di Gregorio<fog(at)dndg(dot)it> wrote:
> >> @Daniele, I see that a capsule has an implicit state, "invalid" if the
> >> pointer inside it is null. Does it makes sense to reuse the same capsule
> >> and keep a reference to it to be able to invalidate it when the
> >> connection is closed?
> > I can take a look at it but I suspect it's a lot of work for a feature
> > very rarely used.
>
> Nah, I can do it. I was just asking for your opinion. :D
I don't know much about the capsule object, its life cycle etc. Yes,
not a huge deal saving it in the connection state and returning always
the same. I just wonder if it's worth the effort.
-- Daniele
From | Date | Subject | |
---|---|---|---|
Next Message | Federico Di Gregorio | 2018-10-04 10:33:41 | Re: Copy command hangs in poll() function |
Previous Message | Daniele Varrazzo | 2018-10-04 10:29:12 | Re: Copy command hangs in poll() function |