Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j34T4-0005pj-TH for psycopg@arkaria.postgresql.org; Sat, 15 Feb 2020 20:55:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j34T3-0007QW-Mj for psycopg@arkaria.postgresql.org; Sat, 15 Feb 2020 20:55:13 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1j3277-000606-Gu for psycopg@lists.postgresql.org; Sat, 15 Feb 2020 18:24:25 +0000 Received: from mail3.emypeople.net ([68.132.158.187]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1j3275-0000bQ-E0 for psycopg@lists.postgresql.org; Sat, 15 Feb 2020 18:24:25 +0000 DKIM-Signature: a=rsa-sha256; t=1581791060; x=1582395860; s=mail; d=emypeople.net; c=relaxed/relaxed; v=1; bh=eSC4IAzoeMtM9SQdCUgDCXu7IsXoxnjyz+k0xtYZPVw=; h=From:Subject:Date:Message-ID:To:MIME-Version:Content-Type:Content-Transfer-Encoding:In-Reply-To:References; b=gCzybiZhU60DVoABI0MUTTDiDPbZcXfNMhcRlQ/ae/TsRo7UYfd1QhJx9URh2cZN2JWp6ybYTR+TRMiFr+IE2t1JMgPD98wjv2SxgOvPKL9fxaPbf58+DirolsgWu0Nsl7ByCPbWvjjeZ3wLO11U880LFJfs8FcdhtIK/4TNe94= Received: from [192.168.1.3] ([174.224.141.158]) by mail3.emypeople.net (12.2.1 RHEL7 x64) with ASMTP id 202002151324202628 for ; Sat, 15 Feb 2020 13:24:20 -0500 Subject: Re: Nested transactions support for code composability To: psycopg@lists.postgresql.org References: From: Reuben Rissler Message-ID: <36003642-bd79-1d5a-ef2f-9d921acd299f@emypeople.net> Date: Sat, 15 Feb 2020 13:24:19 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 02/15/2020 11:55 AM, Daniel Fortunov wrote: > > > For details on the library, see the README at > https://github.com/asqui/psycopg-nestedtransactions > > Do people think this is worthy of inclusion in psycopg2.extras (or > elsewhere in psycopg2?) This is interesting, to say the least. I use psycopg2 a lot, but I never got around to researching psycopg2 for this type of action. I can't help you out on how to get this into psycopg2 officially, and I don't even know if / when I'll use it, but it is nice to know I'm not the only one who has thought in patterns like this. Reuben > > Thanks in advance, > Daniel Fortunov