Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qjDNS-009rDX-1Y for pgsql-bugs@arkaria.postgresql.org; Thu, 21 Sep 2023 06:41:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qjDNQ-0095aT-EP for pgsql-bugs@arkaria.postgresql.org; Thu, 21 Sep 2023 06:41:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qjDNP-0095a8-W7 for pgsql-bugs@lists.postgresql.org; Thu, 21 Sep 2023 06:41:28 +0000 Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qjDNM-006T8r-RO for pgsql-bugs@lists.postgresql.org; Thu, 21 Sep 2023 06:41:27 +0000 Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-99bdeae1d0aso63912266b.1 for ; Wed, 20 Sep 2023 23:41:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20230601.gappssmtp.com; s=20230601; t=1695278481; x=1695883281; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=Og/55/9dYlVklFc15L0ZGIpoWBnJ6pWejGsiD93v1iQ=; b=Dvh594xdsJ6akXLi28hVr8wRsSi3AJU8Sszt93Lbfgv/4DxWrsY1JmIf/2CiLIPyJO 0ybn5/ZD7beiAWp/QVxbmRGTThO/MIj2bJdqftFjVJjhRSTf17GNDdLgbVdj11/bj+Ex 5Vc2zzjH2yBUNeITTrFdz3HB2Z3dztEVgfiQiKZZJPAHtzN97Hv6rue5RPqHp0gJ2eCj Da7dZP9TqtrWuIzCy6gZvWs5zbIGVYBIQeCigOKiEZokKrj3SCqArU3VEwKyg3ba6csE /cvim4Mj9H8LT4iWkcMEycxf4hyDaXsiEBO1RMI4JOxBrJWq0/DyVg9sxSr2ceC6fLmr ODYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695278481; x=1695883281; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Og/55/9dYlVklFc15L0ZGIpoWBnJ6pWejGsiD93v1iQ=; b=a7t91li5Xn/PjBZOku9T1TrYGLZz0AEiEnTitJPta9a/LYgSvmWQdLHXPY3S4IRZQ5 jIxFAwa32HIZUs1n165oTZv2w+8GIdi3V7x7cbPIK5hvmJrm7v+MdhcM7cF+hlJdQVqQ C5k3lVBAmQusMQMwrMtrFObCRInfvZtKNRVxwC0UFFTs/HboK4GLYJ57IjmBhp527pbp 3v3rl1ciHPrsQqRz3QRqdk2PV0ZdWUB0d0byIAZjyOph95JFnu+hreGxS1SOJqmcTK8j 7DlIdfRrRfFBNzgxnVJGB+wI7sPbgHYgtsEcHKnMZYXOBMqexSA66K7ur8T8C9xfs1Uj m7yA== X-Gm-Message-State: AOJu0Yx40QoFFAxc6Pf88BPprEwTKWBeONGkNfJI8uxMhmoMwye74mnN AQ3Za46u+j3gJVR820AujK8cgXHpBEICyq/rTHw= X-Google-Smtp-Source: AGHT+IG7l6ZLtDjkcIJM6a6wiDsiwYFbzGpYOqdaD4bKTXh/9usGuI8Pq/fUWat+/851amog1HkoOQ== X-Received: by 2002:a17:906:23f2:b0:9a9:ef41:e5c7 with SMTP id j18-20020a17090623f200b009a9ef41e5c7mr4154357ejg.8.1695278481327; Wed, 20 Sep 2023 23:41:21 -0700 (PDT) Received: from localhost.localdomain (62-46-255-1.adsl.highway.telekom.at. [62.46.255.1]) by smtp.gmail.com with ESMTPSA id sd6-20020a170906ce2600b0098e34446464sm561392ejb.25.2023.09.20.23.41.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 23:41:21 -0700 (PDT) Message-ID: Subject: Re: BUG #18118: bug report for COMMIT AND CHAIN feature From: Laurenz Albe To: evan.lx@alibaba-inc.com, pgsql-bugs@lists.postgresql.org Date: Thu, 21 Sep 2023 08:41:20 +0200 In-Reply-To: <18118-4b72fcbb903aace6@postgresql.org> References: <18118-4b72fcbb903aace6@postgresql.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 2023-09-20 at 09:31 +0000, PG Bug reporting form wrote: > PostgreSQL version: 14.9 > Operating system:=C2=A0=C2=A0 centos7 > Description:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=20 >=20 > COMMIT(280a408b48d5ee42969f981bceb9e9426c3a344c) provides a way to suppor= t > chained commits. During recent development, I found that it left a flaw. >=20 > The defect can be reproduced as follows: >=20 > START TRANSACTION ISOLATION LEVEL SERIALIZABLE; COMMIT; > START TRANSACTION ISOLATION LEVEL REPEATABLE READ\; savepoint s\; COMMIT = AND > CHAIN; > SHOW transaction_isolation; -- transaction is active at this point > COMMIT; >=20 > will get: > postgres=3D*# SHOW transaction_isolation; -- transaction is active at thi= s > point > =C2=A0 transaction_isolation > ----------------------- > =C2=A0 serializable > (1 row) I tried to reproduce that and failed, both with v14 and v16. For me, "transaction_isolation" is "repeatable read". Yours, Laurenz Albe