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 1g80fA-0005pi-8b for psycopg@arkaria.postgresql.org; Thu, 04 Oct 2018 10:15:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g80f9-0002CR-0i for psycopg@arkaria.postgresql.org; Thu, 04 Oct 2018 10:15:19 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g80ds-0001Yr-Fx for psycopg@lists.postgresql.org; Thu, 04 Oct 2018 10:14:00 +0000 Received: from mail-lj1-x22a.google.com ([2a00:1450:4864:20::22a]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1g80dp-0003V4-7p for psycopg@lists.postgresql.org; Thu, 04 Oct 2018 10:13:58 +0000 Received: by mail-lj1-x22a.google.com with SMTP id r8-v6so7810678ljc.10 for ; Thu, 04 Oct 2018 03:13:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sG8xzEAJdythHGNq06ICg/xbyfZSv0xiUCJLI4nUOsY=; b=AFUXEfqczNlQfrCAMNq9tqHq2hsz3yPNpy7ZCWRsySGf71kDej215eghKvuxBbDLhM BpF6/svTFrfHuWjzuKF5eTqiqrfdd3d8ax4LajDRak44C4h3RWggNFW+nZN+r8R3Uc4k 4za2vDf5cpjEjorAXWkFto9VTuc/SVWLXeLFzjBDngaAAJ9dGxfs4vImJnYwTuFGYhrC 1kMLa93wPY7acM/qB/X8srhGlPCzRuJIro1nI40KOFbeQmpbO24RbS40lXjgvUWRVKd3 Qt487Yv3s4G8mcahba+DN6IlP+RF7RCjiwRDM2I62ignoCuotjapKPHLGqio6hCY1Ont 8z4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sG8xzEAJdythHGNq06ICg/xbyfZSv0xiUCJLI4nUOsY=; b=c/nXYNmVzk9yQZWi5YBzE6SHnewK3bNvhMCFfpFk5aQxqHUKv6K5lwIwdlWGdw0wBL OIeR3iwkcvcMZhx1kgxhRikoH53U4wvTOG1VVSwHe605Dhvhs/g5bIAWAJFjnfcemowG 3mhLqDNb197EPxqrBuntycQjCZ8HM2ulCHehRHsQOQAbDDo9ANkdf5WLBImLD2FQUe72 /GDDyDB3I+OXyr+rkt+xaCbUYryHCE1IaGAuJV2y5ZTEQY+CacD6ZC2hmg2Ss2jf9V5j 220lX3ozhV1ZbwkX6z45Q7fCBebcBrWR3M161VOmMbAfOXta14DtWcAZHe4NloefydAz VrWw== X-Gm-Message-State: ABuFfoiHeo6c5JUZkvWWjNqqXY+GeLgYvVVm8gQZIwJaSa03Z0pVgCZ1 pe7kx8uSjNzRCrV3fVcxBI7KL1/mfeb5lqqmr4jYUQ== X-Google-Smtp-Source: ACcGV63flTAtxBWV99ArFqanZNTG9EvdLmPNrFYWys0oL2gGPuYSOWkET/9b94pSVWHyfM6bS7kd+ec/RYVxqEwyxBQ= X-Received: by 2002:a2e:1615:: with SMTP id w21-v6mr3737840ljd.33.1538648035302; Thu, 04 Oct 2018 03:13:55 -0700 (PDT) MIME-Version: 1.0 References: <2001056273.7945904.1537909025251.ref@mail.yahoo.com> <2001056273.7945904.1537909025251@mail.yahoo.com> <1171000727.19526618.1537994198139@mail.yahoo.com> <2038369023.20583382.1538078255866@mail.yahoo.com> <106450562.4254785.1538510870700@mail.yahoo.com> <4d647279-19ae-75ea-83a7-b74b647c79bd@dndg.it> <69747703.5400338.1538599809000@mail.yahoo.com> In-Reply-To: From: Daniele Varrazzo Date: Thu, 4 Oct 2018 11:13:43 +0100 Message-ID: Subject: Re: Integration of Psycopg with XTA To: Federico Di Gregorio Cc: psycopg@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thu, Oct 4, 2018 at 10:33 AM Federico Di Gregorio 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. -- Daniele