Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ouBbP-0007G1-Us for pgsql-hackers@arkaria.postgresql.org; Sun, 13 Nov 2022 11:56:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ouBbM-0001Cq-SI for pgsql-hackers@arkaria.postgresql.org; Sun, 13 Nov 2022 11:56:40 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ouBbM-0001Ch-Fs for pgsql-hackers@lists.postgresql.org; Sun, 13 Nov 2022 11:56:40 +0000 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ouBbG-0001QK-Io for pgsql-hackers@postgresql.org; Sun, 13 Nov 2022 11:56:39 +0000 Received: by mail-wr1-x42a.google.com with SMTP id g12so12451031wrs.10 for ; Sun, 13 Nov 2022 03:56:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=uWSsqeTWhVg4kCS+N9sX3zzMZGXCUQg0badSbTDu7p4=; b=QPzTcOsUsH6YVUQTBIPXA4vENwRyHC7B0A3dqmkAOTMoCTlIBIwVmpV9UOjWL1yJ+h Xj9fYEMef9FoJTKKHEs+QhO3HjYhbSaeuwB+QwrJMHW/hPFv1JC9Fe07OgdwbbRgAK/w bDStcjQB76r9M83upg+XyowxoB059BUo7kcOhABScRqq+5EEZRSNSR/8LVShQ02Y0G7Q N41QxDeX1lRQP8wsgxIUQ1sAcs4eEUyiq6fVJwWXDA97u4y6qydVoC5BEdsl5oQUmrby 2kxtD6KnMSUA5IM6i82ZuIoauzn3TvNClBVig0SUrwJvF+wAWOJohT6J7wwjprS2ro5Y hqWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=uWSsqeTWhVg4kCS+N9sX3zzMZGXCUQg0badSbTDu7p4=; b=r75rh59arxdYTBR5Jvji/N89CDRNDSbHr0H9ncHhTpx/YDNd/fMjR6Ywz6Xwb8WoHG eTfLjK82h0p9Tz1NB5bGDY799p5adStQQtTBfyofbEmdtCQfTCHX3IbfbBW56rM+W3sZ NcrHzzIwE5HB6WYUUSsWd2BD5rF8XlaJjWye7556NREikIAUDseybTdcQscYOW+9vhQV 5snl6EufeDo+1HTYS+QsyFQT7kG2u1F3zxEE2h1OUUUCwn0pphR7LbeEGDofo1l6Mpu3 gpddklL9E+tRNzf7TTrjMrz4vQbEAJSG98BItiarM0+UcHvwa+3B8lU3qV5hufELATpF kv6Q== X-Gm-Message-State: ANoB5pkz2dLnk5Ph0ROAfq8MMOgnpO+c1NvvaVQ+oAQyVWq/mXiiUM0+ A7eYuKGnlG5kCHftVGhSLuzr1Q== X-Google-Smtp-Source: AA0mqf4k9ECoNk9FGxbHs8A2YO63XWntVUa1YOYSpg1a9qwCpoFIfGCh33sscN64mlOvWpDjhc9J5w== X-Received: by 2002:a5d:4e05:0:b0:241:6e0b:e595 with SMTP id p5-20020a5d4e05000000b002416e0be595mr5149108wrt.179.1668340592015; Sun, 13 Nov 2022 03:56:32 -0800 (PST) Received: from localhost.localdomain (178-190-182-188.adsl.highway.telekom.at. [178.190.182.188]) by smtp.gmail.com with ESMTPSA id a26-20020a05600c225a00b003c21ba7d7d6sm8711373wmm.44.2022.11.13.03.56.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Nov 2022 03:56:31 -0800 (PST) Message-ID: Subject: Re: New docs chapter on Transaction Management and related changes From: Laurenz Albe To: Alvaro Herrera Cc: Robert Treat , Simon Riggs , Bruce Momjian , Erik Rijkers , Justin Pryzby , PostgreSQL Hackers Date: Sun, 13 Nov 2022 12:56:30 +0100 In-Reply-To: <20221110111757.nsfkjm5d64skmpiu@alvherre.pgsql> References: <20221110111757.nsfkjm5d64skmpiu@alvherre.pgsql> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 (3.42.4-2.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, 2022-11-10 at 12:17 +0100, Alvaro Herrera wrote: > On 2022-Nov-10, Laurenz Albe wrote: > > On Wed, 2022-11-09 at 09:16 -0500, Robert Treat wrote: > > > > > -      If AND CHAIN is specified, a new transaction is > > > > > +      If AND CHAIN is specified, a new unaborted transaction is > > > > >        immediately started with the same transaction characteristics (see > > > >        linkend="sql-set-transaction"/>) as the just finished one.  Otherwise, > > > > >        no new transaction is started. > > > > A new transaction is never aborted in my understanding.  Being aborted > > is not a characteristic of a transaction, but a state. > > I agree, but maybe it's good to make the point explicit, because it > doesn't seem obvious.  Perhaps something like > > "If X is specified, a new transaction (never in aborted state) is > immediately started with the same transaction characteristics (see X) as > the just finished one.  Otherwise ..." > > Getting the wording of that parenthical comment right is tricky, though. > What I propose above is not great, but I don't know how to make it > better.  Other ideas that seem slightly worse but may inspire someone: > >   ... a new transaction (which is never in aborted state) is ... >   ... a new transaction (not in aborted state) is ... >   ... a new transaction (never aborted, even if the previous is) is ... >   ... a new (not-aborted) transaction is ... >   ... a new (never aborted) transaction is ... >   ... a new (never aborted, even if the previous is) transaction is ... >   ... a new (never aborted, regardless of the status of the previous one) transaction is ... > > > Maybe there's a way to reword the entire phrase that leads to a better > formulation of the idea. Any of your auggestions is better than "unaborted". How about: If AND CHAIN is specified, a new transaction is immediately started with the same transaction characteristics (see ) as the just finished one. This new transaction won't be in the aborted state, even if the old transaction was aborted. Yours, Laurenz Albe