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 1weD6l-004doz-0M for pgsql-hackers@arkaria.postgresql.org; Mon, 29 Jun 2026 14:37:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1weD6j-003gwX-2w for pgsql-hackers@arkaria.postgresql.org; Mon, 29 Jun 2026 14:37:09 +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 1weD6j-003gwP-1z for pgsql-hackers@lists.postgresql.org; Mon, 29 Jun 2026 14:37:09 +0000 Received: from mail-oi1-x22c.google.com ([2607:f8b0:4864:20::22c]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1weD6h-00000000ngV-1Adk for pgsql-hackers@lists.postgresql.org; Mon, 29 Jun 2026 14:37:09 +0000 Received: by mail-oi1-x22c.google.com with SMTP id 5614622812f47-49452496486so1713815b6e.0 for ; Mon, 29 Jun 2026 07:37:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1782743825; cv=none; d=google.com; s=arc-20260327; b=T12TtxL0ItITjZIvyGDHeloYojzcMoOhM/0+R2VNgegPa6UTkJRP8bMgHowH4WMxOV 3wyCfe3/qWY7xZjseMQMPxIdE6YlisVOUhOQ1nEb5VWTtT4xvXn/Xo3ghcP+xCU7aUHd I0TLdnWtAX3t5mbUM6yIJHHnl0T8PmtR0gvy1jnw0WGwtrzxO155pIjowbbplUWsdw9J 4rOOOuJInIox34BIt2jBIdoTGWI8chE6PCBEe8bEiEUn23QIJ1U7WnU6RmQ5St7mLMsB OmFR4J6eR3xvKyJvPile0Ozai33SbFxes39sXrAjAbDiTqZnxjKLgMmvLEoABOabJmLl WYMA== 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=aQG9i2m+Br65ZuX0IKoxeNGmIt+4s4K5IcphukGromY=; fh=PVlo+swxMQxb6OMcJV8CCd9xnidJRv6f37GvQSEwxWI=; b=mrLRgtNJLeb3wTzEypIqqOMp9B8AkpYwGmCKv/42UK8TebnTVFj6Z72ybXn1Y48wkt eVieSyukmZLV1QsfRm30KgcA4LERuwevgjoAsUR9ekWWRg1SAp9fUphexY6KMZITmlYF 6QcZZD8OxdvlnCtUHSfBz6Mzo12XZAJaVde5Tylx/D4A7Fz1GExqf38zmy3Uxgkj3J9d NoJ+Ss3TGSHL8+NYi+AwyjuSVrF9eecliqJNUHukmgwpmq9crygA3OtoHjYxATyyvrEU b6xConE7IBPXcxwIKjWubwj5yHLY5kHajaitiykKbT0j5CqqexyCpweTpqY2wA1vN6+C trjw==; 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=1782743825; x=1783348625; 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=aQG9i2m+Br65ZuX0IKoxeNGmIt+4s4K5IcphukGromY=; b=KP2E2y/IoerelahUQfkcQaoEj3xeH8KDDaYC2MrBFlGLNQk3DQKDL4MS4OqMtNqcHA hfDGsDk/sVnJlV7ZD+b7filxvJb55cmECqf/C29adDEGTXnmYGpHQ+An8Jolo6NqAior /sz+78n7FKod8JlKGvfuVYoXOOXgHCVieIZfkmzLIso/nAV1hUJLau+y+Z4ZKjHuoKMZ qAq6EQpNNAlQAXqPdwsnnqtPNp9zI6ImFnDcho6V/ejo+Fle9Eivs2Gd6EvlknQuN7cT 46B6C+0SO6G9uOkmvpYUVBofNvbyM9N8FqiI3YvuMZcFRmitrvDwAHUEt1nOXauVH7LW ly0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782743825; x=1783348625; 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=aQG9i2m+Br65ZuX0IKoxeNGmIt+4s4K5IcphukGromY=; b=lvIN6RyEPeCFmZyErQm3DkiOr+fMoBLPxGwZggoE8XIo/vs0+O0hyf3jEX6+LkbsVq xYr88wVJsILi/HtLYVCtcyme0oaNpwhbZzn1tzwGTZ2M6rQ4s5aTgitL3b0R+3RGHpa8 iBzmxbbbEOUdFypWN0BNBr9/zJQFzKzny8tgwHI32MjGZIKYLstaKyMdseELjWdZqb3X YYEIGBAv2SHDfpszdeObboYoegnMOqFKOYFlI/2DqHQu6oP+zRHOXX5veN8/syc2WlJQ vkSYkgETp5N5otU+dtDHq5hRtxlMBfCeugDvc/C7UxuPyNQq8L1MsLe313fAq5DhFvmk 9ASw== X-Forwarded-Encrypted: i=1; AFNElJ+dHzAKAjis6PNXBCSUuFwKxBQGl947j3lAx9w/AYqg4TzREfKSWIOISYjDuprcnxloxjfFBXx+m4GUj4t4@lists.postgresql.org X-Gm-Message-State: AOJu0YznMZTRpFvtsAF20+s21HE/vd+bEt0PTYrHjXWPPHhjVwBRfS4Y MXXdQeIjpCmMgtWtRiKTOs2fklnKUx4bvilQ6p2U64CGVbp6OFjfzYpEx1ZIgKTagXhhjovxjyI eN812QuldicdOm7n/5VTzrJ9CMubKHHU= X-Gm-Gg: AfdE7clzZGO5ZYamTkfQd7rfnMeh9HzqULoc3Bd/7uJJa7hiXII4evE4upc8dm3sMWf 3LG6vckD03WGGKIN3oDfPmr2tTVvXrDNK9geqt6MccNH/9C4sB5S8ekhkHZqsohs2wdr5/xw0na 3wlZD7pCMTeOa14agYK4GaVZMhHNRG/gXulktBc+DefgeOO8cZn9JQ4Bf0hO8mM+ZWLZ6/GjkXs f9ZqyrvLBRehHT7BHqAuceTmXQhUd0zN+OixqSMcV22IGnlUZVONyhlE5dG3EsPn+KXlH5wgj7R 7LGGZ1hR6Q== X-Received: by 2002:a05:6808:14c1:b0:495:e54a:dbcf with SMTP id 5614622812f47-495e54ae076mr652362b6e.31.1782743825084; Mon, 29 Jun 2026 07:37:05 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Shlok Kyal Date: Mon, 29 Jun 2026 20:06:52 +0530 X-Gm-Features: AVVi8CfyOb-gFN_eEhxaxxJ6cCljluN0gogkS6aZ1YUmaGvshg83mopls5_KdBU Message-ID: Subject: Re: Include sequences in publications created by pg_createsubscriber To: vignesh C Cc: Peter Smith , 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 > > Thanks for the comments, here is an updated version with the fixes for the same. > Hi Vignesh, I reviewed the patch, here are some comments: 1. In pg_createsubscriber.sgml: + replica from a physical standby server. By default, + pg_createsubscriber configures + logical replication by + automatically creating internal publication and subscription objects. In + this default mode, a pair of publication and subscription objects are + created for each database, and all tables and sequences in the specified + databases. By default, a pair of publication and subscription objects are + created for each database. It must be run at the target server. 1a. Line "a pair of publication and subscription objects are created for each database" is repeated twice. 1b. This line looks like something is missed: ``` In this default mode, a pair of publication and subscription objects are created for each database, and all tables and sequences in the specified ``` maybe we can rewrite it as: ``` In this default mode, a pair of publication and subscription objects are created for each database, publishing all tables and sequences in the specified database. ``` 2. '--publication' should be inside tag. + the source server. If the --publication option is not specified, + pg_createsubscriber creates a publication + using 3. For consistency, perhaps use "user-specified publications" here, as the later documentation already refers to them using the same term. + For user-nominated publications, sequences are only replicated if they were 4. In 040_pg_createsubscriber.pl: +is( $result, qq(t|t), + "publication is created with both all-tables and all-sequences enabled" +); extra space before $result. I think we should run pg_perltidy on the test file. Thanks, Shlok Kyal