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 1vtIK6-00Et92-1r for pgsql-hackers@arkaria.postgresql.org; Fri, 20 Feb 2026 04:41:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vtIK5-006ReH-1Q for pgsql-hackers@arkaria.postgresql.org; Fri, 20 Feb 2026 04:41:01 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vtIK5-006Re9-0S for pgsql-hackers@lists.postgresql.org; Fri, 20 Feb 2026 04:41:01 +0000 Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vtIK1-00000000JLa-49Xx for pgsql-hackers@lists.postgresql.org; Fri, 20 Feb 2026 04:40:59 +0000 Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-59de8155501so1663952e87.3 for ; Thu, 19 Feb 2026 20:40:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1771562457; cv=none; d=google.com; s=arc-20240605; b=Lp86MOwW1j6wzn7JbteZ+7aAFUus7y9U0NwmAM7NPjZDdNsvjGdDVdsjYSJoO594cW nOC2kC9bJcyGdHuGCWuDUn6oOGlToLSc2eaJc+JaSPEp8x+qe3QY6FnOrGdvnAjBOeqU q6nxpwYCPhYQlZsbmLeWmUP2tCyOepaITNecI4l3AQU4FSMgpbhU6KgCnx8EC3oqqAea 3hddjcDb2apkOdddeKcSZe5kq8pshzft9uD/MjwQdsI2AaoUcR7yNv+6EBeTjAz/fh/n +kuIn6uGPjpEESZK5Ny+qmxr8MBrmGZIAAn1N/7oO7otJGgq73amF+LVrQojiy5IL6N0 S/lg== 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=0QyNXBWnRtfejZr5WlgzGX0VLfbrJPCni+KlZIyVcfk=; fh=pOFqMSv0ZgiWxaYGHfnGU55XEifwPEhvLSMiqwTzR9E=; b=Tcegz82/5H6fDf6VoAASgfcmUm8YOLJ8QntOaj1rJ8/NJMQmad5RNyWrIhMX+qkA89 dxwEmlH4NvUTIgp7Eg31vGzsi2qzUUKkIq3ze0P34CgU0kpgG63iBeBXxGoXJ8mKuMIg vap5ZpZkU09gwb80a91TL6gDhlzTvZXSaZgz6BQkBZawXz/A47CCwxM7bypRwTEVHwKV pYN38p4mdvxW2Clx3vuHuK/j6BF89aZ4LG97VOHg+wlkvLc01B3t+TgRwIliCytwligv dLSL1bx5gE5Jzgsw8XZFbjmlGVrawM1BSfkDPxdgsjNolkRU9L6OVTaOYUZjc+uWfAhC a/sA==; 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=1771562457; x=1772167257; 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=0QyNXBWnRtfejZr5WlgzGX0VLfbrJPCni+KlZIyVcfk=; b=MYS66u3ok/e99b814CuZaH9VWntwNzF4RI/7wpY7ROWlSCUJmZic+H8t7gk/MN9JQD bWDIsUQP7VENpY90xCDdN68HW0qPDqCP8fKRpqRP5cgknAtjk4Ne7sI6KORqeSrZw8L8 RbPJTugp+C+r6BOIsx44uvtstCgZ1Twv4wkylYbii7A+Ow6NbkoGYX2SJgiPI768JeNE ZeMnLOm8mW/K1D9Imz0mELgbAHYE4ScFY6il0EW8dXksPBT7xU+Krxpx7bakKmLGLPWq h/TRKryGruEV2tby+4MXQgwlnD43epO5+YxHaywErCZyZ2qFr347XsE8DB87doJzrvkf a5BQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771562457; x=1772167257; 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=0QyNXBWnRtfejZr5WlgzGX0VLfbrJPCni+KlZIyVcfk=; b=MU/iCK/cMSFGwpFCxoOQBTdqGmKp4O0cy5FHa7BwOd2rhPLaa/c4K4LkY/5u0V6HJn Szp1O6ETRQ8TNvK16h0yK9V+vMdCdE6X6UB4BU4jnXI9C0loMkxprE79nDQKehZnrSOX sQj4uSryIbY2e6MxlvnMtlgTOlyPVKeUtvBgxyWEMoyaxTwreKrjmm/zd/sss8b1v6jr d787JiZvdJVu2e8gmDydYMoRogyav26g45k3K/sDlcgwObElKI9Di+ZpT6eKFNP49wK2 Z1n350P/mlMGv6Em2v5HUF3ea3M8bluD2wyMbAL+BDrefSxHaUotMSHoi1fw6Jagwggb +FFw== X-Gm-Message-State: AOJu0Ywygx636KPXS150bBLDujL6///a34gYRj+FKwmQWG+G1jlp/8T2 osoJDM4/PBPISCajdRATew6kl985/RHikDVoeIMkvyNCWtsecGMZKM9AMs6FueMBLCBNSYS1/tL AACjvEjwpMQn/v64OKVRfHMMAtjXUwAI= X-Gm-Gg: AZuq6aJrDd5jE5dS1xkV0H2Y600tt9QIjP9KmzFgig6bi5Qhy8EHAqsMgT9C9qC11J7 awsNnNdKuOfNW5NDw4ngzgxhDmLLempep/6tF/HP1JZheadeWzRoD9upnBNeEPWGzhslT/hr/F1 gwrqP0JxP0zFrNhktZMalldhpxmK65OKAi+igR06fCQsADc64Gq87VezWxgLgqoH2vXE8GVzU2x 7w0G8IAMI/7tVkeTcdmaKcCHX//Gih+wR1B5td7Ocsyk+Z4OVSGx5evhEUS6cgKgxSR2uaLR+hK KUmIG3iRYADXI8rIy0KVFNhVeKpfAb27uQdvaHiH1MGaNDMh X-Received: by 2002:a05:6512:12cf:b0:59e:5cf3:64e7 with SMTP id 2adb3069b0e04-59f895400aamr1716812e87.0.1771562457067; Thu, 19 Feb 2026 20:40:57 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Dilip Kumar Date: Fri, 20 Feb 2026 10:10:40 +0530 X-Gm-Features: AaiRm50iCzkmTh5YANqnchzbHK3LscKvgQgDrw7Ki0fn0Lh0mOVTWL9eAxcZcEU Message-ID: Subject: Re: [PATCH] Support automatic sequence replication To: Ajin Cherian Cc: 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 Tue, Feb 3, 2026 at 9:18=E2=80=AFAM Ajin Cherian wro= te: > > Hello hackers, > > I'd like to propose an improvement to the sequence replication feature > that was committed in [1]. > > The current implementation synchronizes sequences during initial > subscription setup, but the sequence sync worker exits after this > initial sync. This means that as sequences advance on the publisher, > they drift from the subscriber values over time. Users must manually > run ALTER SUBSCRIPTION ... REFRESH SEQUENCES to resynchronize, which > requires monitoring and intervention. Thanks, Ajin, for the proposal. I am trying to think: what is the use case for automatically updating the sequence values? IIUC, the only use case for the sequence sync worker was when using logical replication for an upgrade; after the upgrade, you should have up-to-date values for the sequences. By adding an automatic update, are you targeting any new use case? If we are still targeting the same use case, I=E2=80=99d like to understand how updating the value at specific intervals will improve the user experience. --=20 Regards, Dilip Kumar Google