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.96) (envelope-from ) id 1wfVMp-005UJm-2M for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Jul 2026 04:19:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wfVMo-005BnR-20 for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Jul 2026 04:19:06 +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.96) (envelope-from ) id 1wfVMo-005Bn8-13 for pgsql-hackers@lists.postgresql.org; Fri, 03 Jul 2026 04:19:06 +0000 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wfVMl-00000001QOb-3Qsj for pgsql-hackers@lists.postgresql.org; Fri, 03 Jul 2026 04:19:05 +0000 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-490cf322ed0so398485e9.1 for ; Thu, 02 Jul 2026 21:19:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783052342; x=1783657142; darn=lists.postgresql.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=uiLUUn1DugZDd8m1GTGbFMR8tLJvS53wHpAp+mjVhYU=; b=Dsw/NKN59V8UUcMY68QPzovVdQYU8I79+bjVTJ9b0MZ2z7yXzU5XVD2bRSKloh9ijP BCzVaBY0Zm4NVpMX5E9GcDAJSYYuxh2G3YyyO0/bzr74qfLU4TMyEPT46DtF4K3x1kf9 HKbqxBh4e2qh8MUy31RAqTLKNhOtu+GWg8dhDeoGXSsWSAeu6Mb2+7rgibGXzID1uP/w wpVpDAp2fO4jF4niv/XsVxGvVkLW3iu0I7y+6z2JxchTTDhDCCIqV4nsYh3qN+H7p5ax H7zY/RnAIUpdd8PFkcLyD+yWaa8fh6wzTF/DeWWu+28kQ9GOAUGgPSPjZiwkbz0jNaUK xwVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783052342; x=1783657142; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=uiLUUn1DugZDd8m1GTGbFMR8tLJvS53wHpAp+mjVhYU=; b=StVScy8sPsu6xJwVfuc/Lpepwoe0dxZgXEyckUo5P+exg4R+/M9VXPsHFeMWbJ9O86 5JnI4fTeU6zCsire0F10TQwSrypt+qnyhB63o9XpkEEiJ9iJj21UKU4t94oZwuG2kw0q wOeJbBNIRaKOwveAPJqpp8pyTuFnuX4GLDXeupZIiJdr+UxTq0oFwhH0Th67PAEI1xz0 MMLaScrnODXgxDajV/5yeREZaPu82V5v8IpLtECPB9dAa9+++X7I13wNKdNi9gheJJ2/ 7knlrWcgehjgVhRCWBtKFJks6AteiTetO4OrQGlt/oREpah8aA74YSFJKtIXoh0V3tpy WLRA== X-Gm-Message-State: AOJu0YygqKe1ct9DjDHhXVM9zVlzvAThxXaLPRRw66f641LLHM0nLR6k riTqTp0CuZN2fTGmCqU1XT3HnlOBSqDvjagqh5MxVp62w8KF4HRnFJmCcEiUgQ== X-Gm-Gg: AfdE7cld8xKmqRTSkb85EB/yEV0lWQsZtyyZQ0x+Rob3Mjxyr6Vrs9W1KVNburTsqgt +RAgO7Biv8zcSQblClejcXE7V7Lmkexf2BbbndTU9aTiA909oweu2K5G/qROLh0vpvdoz6qmCPr v5ZltoMatWoJgvIzx/e42F5fLTzizwh9GLhkBPQyfj1G/+TvRdaunq6GALF11TheRGMFn7kW0WS nm2HLKZU3GwQPoblAdw51ex9FZ+52VRuWMpyuCQoWk1B+k7XA43G0yu6jBQDk9T82HngQDdtjMQ ygEyY9xSl1PEmAoONCy9tqjNrOnbZwKdL5nqL+Us2BO5oXpwi8k9FwLs2gc3wCChGjfnk7khAU7 aqpThVnfKfwvs43t+vUB71aw+5XMDwDuBnQQ/s7okj2CVhvqWfKByV3Y0gfytXTTDzLqYBt+FCg QzyozecKODQJNmNcAGyWii47dVEPdbQRYMo0BxSTK24V0s9fxYvKgIHjjdXftHBhhTdn3jQbW/ X-Received: by 2002:a05:600d:c:b0:493:b8cd:2555 with SMTP id 5b1f17b1804b1-493c2b3a717mr110282735e9.3.1783052341970; Thu, 02 Jul 2026 21:19:01 -0700 (PDT) Received: from bdtpg (ec2-15-237-197-144.eu-west-3.compute.amazonaws.com. [15.237.197.144]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-493bef183e7sm203015535e9.2.2026.07.02.21.19.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jul 2026 21:19:01 -0700 (PDT) Date: Fri, 3 Jul 2026 04:19:00 +0000 From: Bertrand Drouvot To: "Hayato Kuroda (Fujitsu)" Cc: "pgsql-hackers@lists.postgresql.org" , 'Dilip Kumar' Subject: Re: Re-read subscription state after lock in AlterSubscription Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi Kuroda-san, On Fri, Jul 03, 2026 at 03:13:08AM +0000, Hayato Kuroda (Fujitsu) wrote: > Dear Bertrand, > > > Yeah, but I think they would produce "tuple concurrently updated" error (due to > > CatalogTupleUpdate) so that invalid information could not be used. > > I confirmed with PG14 that tuple concurrently updated ERROR can be raised when > ALTER SUBSCRIPTION DISABLE happens concurrently: > > ``` > postgres=# ALTER SUBSCRIPTION sub DISABLE ; > ERROR: tuple concurrently updated > ``` Yeah, reproducible by using a breakpoint just before acquiring the lock for example. > It might be harmless but I think the correct ERROR should be reported: the patch > should be backpatched. Thought? I'm not sure about the back patch part as it would only improve error messages in a rare race condition (and there is no risk of invalid data being used). Since a5918fddf10, that's a different story because a table creation is now involved. Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com