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 1vuOkF-002Khh-28 for pgsql-hackers@arkaria.postgresql.org; Mon, 23 Feb 2026 05:44:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vuOkD-00BtpD-2r for pgsql-hackers@arkaria.postgresql.org; Mon, 23 Feb 2026 05:44:33 +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 1vuOkD-00Btp5-1v for pgsql-hackers@lists.postgresql.org; Mon, 23 Feb 2026 05:44:33 +0000 Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vuOkA-00000000oHZ-3eTG for pgsql-hackers@lists.postgresql.org; Mon, 23 Feb 2026 05:44:33 +0000 Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-386b4c28ad6so34328361fa.0 for ; Sun, 22 Feb 2026 21:44:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1771825471; cv=none; d=google.com; s=arc-20240605; b=WQK4Ta8vwIBW0gKSjjUmBJDxxrJFwCW7GKKQiE2RkiwAO7mLqsY6bmmQHsvsuMadtu OphqFUk9ADiO322MRFy1+FCEzjnvQj3potJjMoBIif/+tnAbCFzD0IDT3HJ8hVlCbrEq G1LPc9yHIe6K3On5dqL0N5WIDRooefGWLlraIeJFKjiRHG31EAtZicqTSbQ/EQ/36GdK CuV6Pl2rcuBg7kY1vv9iEfnGeyb4je1hXfUk8wqwdtYcalHAER0WsljTejG4r12zUqQJ iWHSc4+9n+F/0D+qereYr39l9zYoxUa+2FGp10j1tGmlVvHOKA8Mr0/gYZTJmS1gmxk7 8D3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=d1bA0PueSAlXiMlX89sqRv5uVZfvfHj4lYayng8ROkY=; fh=pvuIl5S4ApP9viSSSYNf9eVOxYYdPPE3zZ5h7QT+HW8=; b=gCaQ5bRUompIH8YvRYJ8vNZ3rqRj0ixjfH5ztmT0jY2JUo90AibcMrlitmTUW2vV7C tHpDcXeEzrYnLMZW9Ha5NXODmIepAubM0B/H8pI8QdPKoGyj/RJCcZuW14FDol0VBrIm tgquTQJEwViJL2J7q3LNrZvFb6RBA1i4GusXF0JcX936KP02xZ9X6jMuXxn1gfhXqLyc ieKEYsuYlOgGDs+dw6tbe8+3XKkrM9+6aRY7xbTB96Tf/OI/OMUAse1oc4g07aTfwpas Nk397AoAYK79+I7kko5dlp5MUdeUxK8cDGy6phcWK5SVvLdiBfkyYJ4J4Ny1Mf1Go4E+ oqKg==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1771825471; x=1772430271; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=d1bA0PueSAlXiMlX89sqRv5uVZfvfHj4lYayng8ROkY=; b=DG7uMpBVaiox9QA0QG6ZMR5NVzalsa1udPVkZo4KeM6gMV3hxIKRSLAOCRKLsM03Md QWsSFCOmHK1jOG7CX7DxiLyXSxVjdF1Aa3D5yCMYg0el+k04daAJu4hugDsEUgrFbG3v hwcyZZ3Zx6KH6Uw9S3IrqYPTfOgqJFkDFsWwOJQoTjtucHEBLnm9fuzAtPHeKTr/P7wf ldsoHkMvHEtxbUcSL4SMKRuGlBUoo9jED/COT8L7YeK5X9VOSMUr9vQEJWuBJihID+aR qkq4Xug9CL7XyEXgJOI7yeE2MnYd2qWCDhkPPNQh7ZornMuwfLfLdKtcyuFXeHeI0r8B fgzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771825471; x=1772430271; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=d1bA0PueSAlXiMlX89sqRv5uVZfvfHj4lYayng8ROkY=; b=EJMVZurzLOkRy8aQAjCuzxXQs5O2PeUo3csFEiAsVADYjVtEd90bhKLzHP7+OH0mHv 4rgA9aXG2owuUAQNqX59tOwOa9h13qefG/h+i07A5+kINM4cGo+Abj/9Qvxyc5CydVeB PXSDKa9e0vhVfDk0+uePKtk+Y4Wfb8p49TdhhlnT0p84w5Y7+dLMd5KMircpYZMsgc5/ S8MqO8I2T8Xhc/k/Q5xlElP5RTtf5Na1Iwu3r7tDlmGMrMkJqnBb8ZjudBLGOSuP+X42 4quQ7M1tn+InhjGnl9wcsu7+95I1c48RfuG9lOFnnukteKK/qa1Xbv35/vw7NxphY81i nHsA== X-Forwarded-Encrypted: i=1; AJvYcCWUtyHBCRIlNrHEZy2NyH8/GMM1WLWOeeKWsDJMjy+bsP0rO0yU+deFMRod1tbOO4qgf5vo45N0OuHbf8cJ@lists.postgresql.org X-Gm-Message-State: AOJu0YzjZy/gtyGXkHGSpNmpJdmn4kypmmYeu1ILqg19ZFBmauUjPhT3 NC00pAgcklkfr0QmMh8z1tyPZK9SohQffrthgYZnyXRWWznMtVxsJN2Ic/zI7ZMdc2qO2B7/V02 c6UXBufWn2YSdMKg6uYwamtrIUq3BXS8= X-Gm-Gg: AZuq6aJ3ziJOwGOoiCDjFVRY1mzqn0Fw04lIO0PNXkwLVZHQttCiK04je4osVqylAKL SM3uReE3nB/kF3ENw3++C9D2ZmOkiEqcMn2d4jMsy01SVzTRhiQyBFILWvzPVuDokpYHtuQyS0p PclHJ2PQxtkLXsdZI5BRC28+VI5MCwilbqv16zu77gPqP2ctCz8RqvYCRF0bo5FQJ9v/H7YhoCH X46ZOuzsLamRXATLqd91/hXU0Jx/Tbm8nVrlMILzPmicQ88H8KbOR5mircA6i0MULWJQtF1W0jQ sYcRrKjijDmoZrjDsUb9EbF5kvTGXkDmXoORCVRINxHQaMTWZEef/fMJKS17TCjnddDQjRJ1 X-Received: by 2002:a2e:a802:0:b0:383:f43:ed45 with SMTP id 38308e7fff4ca-389a5e1626emr22957231fa.30.1771825470564; Sun, 22 Feb 2026 21:44:30 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Amit Kapila Date: Mon, 23 Feb 2026 11:14:19 +0530 X-Gm-Features: AaiRm50-MoCirFuRNAI9pcq4XK9NeoHl_YsqZBg_b-sjCkZ0wsDEl7z_44BpygU Message-ID: Subject: Re: [PATCH] Support automatic sequence replication To: "Hayato Kuroda (Fujitsu)" Cc: Ajin Cherian , shveta malik , Ashutosh Sharma , PostgreSQL Hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Feb 23, 2026 at 6:56=E2=80=AFAM Hayato Kuroda (Fujitsu) wrote: > > 06. > Not sure if the issue should be discussed here, but I found that sequence= s more > likely to go backward if users use sequences on the subscriber side. > Previously, the sync could happen based on the request, and users could u= nderstand > the risk. But now everything would be done automatically, thus they may b= e > surprised more. > > Should we consider some ratchet mechanisms, or retain it now because it's= not > expected usage? > We discussed this case upthread. We ideally can handle it via conflict/resolution strategy or simply avoid updating the sequences that are synced from the publisher. If we do later it would be tricky because we need to maintain a persistent state and then after failover, that state should be cleared. We discussed to have it documented that users should use such sequences only during upgrade or for failover cases, allowing to update it actively on multiple nodes can lead to inconsistency. --=20 With Regards, Amit Kapila.