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 1vscCS-009zPF-2W for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Feb 2026 07:42:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vscCS-00EjHU-0F for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Feb 2026 07:42:20 +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 1vscCR-00EjHM-2Y for pgsql-hackers@lists.postgresql.org; Wed, 18 Feb 2026 07:42:19 +0000 Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vscCO-00000001BR0-4Bue for pgsql-hackers@lists.postgresql.org; Wed, 18 Feb 2026 07:42:18 +0000 Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-59e60925251so5462377e87.3 for ; Tue, 17 Feb 2026 23:42:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1771400536; cv=none; d=google.com; s=arc-20240605; b=BUmQO+9uVgXMw5e0mrVjGu+2wwOkzQ1JQp9e3jKEL9hSJQ06irGQDfMLFwGQN0tPcs 7WYGdsOMiu2RyGSTnMwfYuoDyO+C3/lUJl1v54tZklJnN4X8s8AEvimLX/MpPyIVczYd Qr4m5uffkvqzO4OUU7EwYnBNXB3xhRml6yF2WWgiyZMFb4Wmb+4zVRJyvJwtTiQwSqH9 FuQfyaKm+K3LeqNpqdi36JyFj471BvK/gxbLhR/pecsuom/Co869RGPmakciKlfE+YfH W4r5KyD7J4ErrmD632PxF0agefZbRIsIeW5twFMT73NSSRH/Opw/Xc92nARNPJ5KsZqc lFdw== 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=8Lb96GpsvOlymcj8xKP7WosB6cg37AIgldLM3J5PZq4=; fh=R2WickFp/fmxWkeYv5ytQBw5CxCE2JxTUmj4VIsqg7o=; b=IPOnrcrS+T7dPxrury2uko0EkwrkSP6g9GcTBNvOW8LCnuY8ecLw5xD9miHx2km+VI AXx4uQtnej0FghW573Fhx24JGZTM/9fesXk9DV8glMauK4mSbvIVzAU7GhhNG8vaSCp6 QO03gGsKdFQLEnhDAOnW+D5KFrcaMHFrK0USypwpsVcor479dNj0H7rTzmha5GRw/RrG alDriXmqtyFEA95Dnu4i55k53iKQ6f5dV+oHD4PHzasNFhfiA9RtBwdXq0ml/KpwQB53 XXm9VUT+FbFFmxdKi00zq0ozqYtou3wTjTTVDqLXnYCSCxZLTpV73vBavlqUq07ayB7x 455Q==; 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=1771400536; x=1772005336; 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=8Lb96GpsvOlymcj8xKP7WosB6cg37AIgldLM3J5PZq4=; b=U4M12rD+WE478k5v8ZV8HOqklcxLMnKZJaaj1NZIwgT6UgVk1hEVEUendP1AuJjJu6 jsNk5dckzTCr8CVw/D0BUH9iPuT1Y7EYgPUhd9mkyJKNgTeIQxtl9RVafvzSJ2wGwDBK +Ke+pGv2UpiwoBwjh+NughOFwCV7W5DSoGabdI9Kdlp+2EI5NdWzuipTXSyIPmn9Zxzh sc4KYEZQ+uHEKy3tco4a4UWe1+X35JamXvCtlfNi8rTwWY6eLGf55/Mk8RpYKVB5QjaS vHjIuIgigZGNIyMwQw6gJT+BNArKJVy7H0R/AI5JsLP7etp211FjVyOHHtAL5f41fSvD LlrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771400536; x=1772005336; 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=8Lb96GpsvOlymcj8xKP7WosB6cg37AIgldLM3J5PZq4=; b=jP9jJeFBOjV9Iv9XPFp4bZn49rRN+7QHJiKIL8qt5tlNntY6rhhPtvYxuejcEUZg3j kqSNaV4WT87jA9zPR3DvfGuS8ssUvxmIAgQhGbTYKVtLzqOztjoaVPxkz223GQ8A8m3R u972Qo+EnUCIoa+pAczuWpTr37la3fO1FIWglVs5IErOAMIeuDs79QXGgQp0HwKmGznR UhEDhAg5wqCPRaXctVlD3WsrFMS8H6EVh9YAVp+uIDNVmnK0ndjZrA4hy6WBK+IDhh8J 9VIkWMLHRYWFLSPED1LJ+cJUkl4tuCoTmy4IpM+1JEzoXpoiX+/YTLE0OqttKch3Kvg2 nNyQ== X-Forwarded-Encrypted: i=1; AJvYcCUSBQLjc6l9S75MRVcTqoaOJE1FuLhwamLgLqiLDNrarh4fYXtzYBa1/z5Tv7rqiuYmU3wBY852nWWfpUNn@lists.postgresql.org X-Gm-Message-State: AOJu0Yz0aapbzSGjX74vt4sHJzbzxcTzZsAeY6sWz+avBiiUwdYaK8qd o59TxMxp6EEblAuV0hLJYylIk3Cb+DZVgr8t/onSLWUT1JqBQSDFDupbpAKdFxwqnh2PNaUTsRl DYUjVWsz0yYll7Uh9zvjbuBjz5frtyOFq0ZIWQh4= X-Gm-Gg: AZuq6aLYyJ99UwQSergFhoFp51Gn4SkzIvczpKpAhWDatTNz+PVurFyzFmPHYvLQVeE LwZINIyTfAyHnceZxdim+1V+x5WYtV4wJfCwmAJ70T3wzEZNwD2U2WEONWA4h5VHScodNBUipNc akQ0xXQPszPHl1pocZtFfwseZSV47wELxbB6vMrvLQGqORtqZAE+Af/vb5AYLYoDs12keYgp0un tU9yYdWN6ffNcZi/tyKnIlmNMjDCOlKPcFkVlTJBEuiicW8B0+TqPRikpEu3kRa7CVkqoRa0UQx CtFJzMIp7nxF7PXCX37GxBkf0NrJq/fHI8Eh61NYfdCM7Ovv+9M= X-Received: by 2002:a05:6512:398e:b0:59e:5bfa:4eaf with SMTP id 2adb3069b0e04-59f69c6868amr4135511e87.37.1771400535966; Tue, 17 Feb 2026 23:42:15 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Amit Kapila Date: Wed, 18 Feb 2026 13:11:48 +0530 X-Gm-Features: AaiRm51CRN_zp-2RetPmpr_DYU-INU3Buved8r9B_PgmPg75UkCSqaAenw8EZPM Message-ID: Subject: Re: [PATCH] Support automatic sequence replication To: shveta malik Cc: Ajin Cherian , 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 Wed, Feb 18, 2026 at 12:36=E2=80=AFPM shveta malik wrote: > > I tested a few scenarios on the latest patch. Sequence sync worker did > not stop in below scenarios: > > 1) When the subscription was disabled. > 2) When the only publication for sequences was dropped from > subscription ( ALTER SUBSCRIPTION sub1 DROP PUBLICATION pub_seq;) > 3) When all sequences were dropped on sub. > > Application worker stops in scenario 1, seq-sync worker should also > stop. See maybe_reread_subscription(). > > We need to decide the behavior of the seq-sync worker for 2 and 3. > Shouldn't we try to map (2) and (3) to what we do for table publication? --=20 With Regards, Amit Kapila.