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 1wcdic-003VRC-30 for pgsql-hackers@arkaria.postgresql.org; Thu, 25 Jun 2026 06:37:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wcdib-004F5W-2U for pgsql-hackers@arkaria.postgresql.org; Thu, 25 Jun 2026 06:37:45 +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 1wcdib-004F5O-1a for pgsql-hackers@lists.postgresql.org; Thu, 25 Jun 2026 06:37:45 +0000 Received: from mail-yx1-xb12b.google.com ([2607:f8b0:4864:20::b12b]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wcdiZ-000000008v3-3hXo for pgsql-hackers@lists.postgresql.org; Thu, 25 Jun 2026 06:37:44 +0000 Received: by mail-yx1-xb12b.google.com with SMTP id 956f58d0204a3-6611669cd16so2153405d50.0 for ; Wed, 24 Jun 2026 23:37:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1782369463; cv=none; d=google.com; s=arc-20260327; b=GY8GueF2Squ60Vq+0uvWxeXbBoD366GVOSAtL6CMrBw2HMZE1BQ3vL64gtvcasZRBo JmcYFJHR+0+FQSbcn+ZXDhLrxskrR46r65FXKwvkTy07EqypAiiwBCNg8Hq0Yqrp6uDb 5Ll5N0LdHAwI8mlN6bu0dPcDu932qd8s6qmL+VxZHUWKhsVSC7QIvlrIhcpTnamNmoYL rdK/JTjIU8e38kbcq5x+WDkK7NU2Uo/os6IGDbOMBzy3ObfYOBGOk7MzHiSypCpHuR7o EIMtsEXzycagsqZTAat+m+Sbuz4Mmbgc1h4VauvRJBjtIC/9HlKjGXP4RLPsdUdm8FR0 86MQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=Ah6dh8JXpzA18/3bhqRjLi4I/H/n/JjeEGBHs/4lNVQ=; fh=KcfTCw2ZVqAV+lTGR3KRT9q1CRnyXcs7hTtvM0Hb+1I=; b=QZ9eUI47qNBOb3ssYvW3KdXsqWNHopOGDLyrmbxxCOle4dKikg4AxmwNud4UjqwMVl Ru4qhuR+67x9MVx0XGv76pFSFJUhnW5ewKTi9Bj8P1fm1/43bwddESreJkJq/Z7ma4T2 yoFg8jmYwNctkxAwPJZHa28ZXpDjaGAI9+9GVuMNKb+QcuR+nhwXrQH3dbpIiblw8CKq xT9kPkhxV4+o80kgrD6PHco8V0xgo39GAPnAJCRoI7aHa2/HUNVBVFoNUwFvx/vqtz1T Lcpom7JcwjtcghGjGVWu8tamx9BR5MUvkifWx1ZgY2Z8iFHy7hAi4S2VYZgIFT9fM2iu /mbQ==; 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=20251104; t=1782369463; x=1782974263; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Ah6dh8JXpzA18/3bhqRjLi4I/H/n/JjeEGBHs/4lNVQ=; b=gCvV3iJcev8DJximl5CPnDeZfm+h39MKhDF9XfgIBEKMYBJpHbwyjVGAXy1oUhDoHm DBDtFbGDIoyAPGrTOvdCZ/NiQQuQYn3lgK60YO5H7HVAexfOHbT5tf2pxzmcDohlIKYn TIgmCqxP6o3aPzrOlrHVbEBRJiWZnc1o7qRPndMX92X05jhm8nDkBg/ZgmokKX+r/TAn AehcU/2y5ouiSgOSD5qZWxnOn4vDuBGEd335kUrBq70VZ8//JvU3g4yRGROsUXSfFL/D IVZ9QipLpOgPCnAZdk5HVLLnpg4NCaabo90O9XkfIvbprJVqfZQmUW0A7OWBx1u83iCj gjvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782369463; x=1782974263; h=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=Ah6dh8JXpzA18/3bhqRjLi4I/H/n/JjeEGBHs/4lNVQ=; b=GzAs7wBYR1VG3bRPvUtM8/roJrUOamwEi3pmCaZlvFwCSksUjOgiUHurUGHFHsK46G SLecSu3GE6DPRqKIFT/uGMRnyu0AQ2SRryL0ODZOsGMrHNpRqH5/HABfbjc8/dAc4Pci IVe14A6t/pBS4e55i9OPZT3scflW41adzHeWM3GD8rJBshu2J8RCN8TMg68H4ocsTUfu 4R6knKVvJ88UyXpzhroq4/S5MFoKnFVZAiKbOJG4VDNvj2IJv7uUvQVUT9W77Sia/jua 5IhMi2DrJj52aJNQiHPOA2bbQ2I/IeF1vDAZ96ve7JJ7fj49IVNFSNMFllBCyQOyvl0C BgkA== X-Gm-Message-State: AOJu0YxLCvyVl8w8GWTWsvQ1PJiHswTXqwSSM+tUoT6vgzutOHLHeiq+ YH8uM8HvcqESVXoYXzpjc9uo+fyXSDLZV1W/YMX4O7/11NsR+oAy/DHjarKLviiUs+jJowthWMX qZkeXrOik4AvAWoY0+q/M3uU74/IKcco= X-Gm-Gg: AfdE7cnC79A3ul7Of+1kd77XfPsB2KZImeVypgSsy45VrYDfibVuWHooYcxlYFFDnpP nvlmk1+xDwEOWELh1UiPqSEBHcqz5gaqSMqZUkb0Kl3s8fXI7A9rAQ9QLmVcCt+lVfOgjTBILAS XQ/lM0Myb4XfePn8lIkDZ72I+qXo8z/GGBO10JvlHLrScXhhIJo1FAgnP+mdplnroC117jyR8dM 6TMfdIexIo5j1qQ0mxruaAwVWFDBFsbUT60Xphzvw9MM+xsNnP1rZSBIzEQPYP7m3oULNeqEW4= X-Received: by 2002:a05:690e:13ce:b0:662:d75f:ab7c with SMTP id 956f58d0204a3-66487b9a981mr876234d50.14.1782369463014; Wed, 24 Jun 2026 23:37:43 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: vignesh C Date: Thu, 25 Jun 2026 12:07:30 +0530 X-Gm-Features: AVVi8Cd5LsmQxdbR5EK4ov3mvwig4H_kkeAEbXgxPbReSA9uYy1LWK3X33jp-PY Message-ID: Subject: Re: DOCS - clarify CREATE SUBSCRIPTION only synchronizes sequences when copy_data=true To: Peter Smith Cc: PostgreSQL Hackers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, 25 Jun 2026 at 06:22, Peter Smith wrote: > > While reviewing another patch I referred to the information of "29.7. > Replicating Sequences #" [1] which says: > "use CREATE SUBSCRIPTION to initially synchronize the published sequences." > > AFAIK, that is not entirely correct -- synchronisation of sequences > happens only when the "copy_data" option is true. Although copy_data > default is true, the original text was misleading. Anyway, it misled > me. > > PSA a patch to clarify that "copy_data = true" is needed. Let's include this to avoid confusion. Few comments: 1) There should be a space after : + use + CREATE SUBSCRIPTION ... WITH (copy_data = true) + to initially synchronize the published sequences. 2) copy_data = true is the default, so it may mislead users into thinking they must explicitly specify it. How about changing it to: use CREATE SUBSCRIPTION with the default copy_data = true behavior to initially synchronize the published sequences. Regards, Vignesh