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.94.2) (envelope-from ) id 1s9n1L-005AB6-5n for pgsql-hackers@arkaria.postgresql.org; Wed, 22 May 2024 14:32:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1s9n1L-0000RO-3O for pgsql-hackers@arkaria.postgresql.org; Wed, 22 May 2024 14:32:47 +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.94.2) (envelope-from ) id 1s9n1K-0000RG-Q7 for pgsql-hackers@lists.postgresql.org; Wed, 22 May 2024 14:32:46 +0000 Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1s9n1H-000DMK-UI for pgsql-hackers@lists.postgresql.org; Wed, 22 May 2024 14:32:46 +0000 Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-a5a5c930cf6so1019335266b.0 for ; Wed, 22 May 2024 07:32:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716388364; x=1716993164; 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=AZYPK/FgXNUOZ9tWIezGOV8VXxrkmCDC2y+SYMRQ/0Q=; b=By7TJWFrcO9CohHgfnQAjP6cSHHAJmsZRVBuxX7Uv0N3uAn+X4nT4xgwH4Bwd6P/OG MzQEIaUPvAZ41qWYSNjr+QzrosQNE5W7wYp7+K0KJcqvswT8kwOgaihyTFH8RwzqfU5e RgwhYfxgqQwIKcFMP1ym0gcPNGdBL05Y9DcgbbEOOF/JU7UzwYxmeTxcKon7wZoobO9A xHsaQlvKdT8P2KdBG0iZWPLuR/BSF4fruvs31CvsSq6rP7RHDIgQt47yRdk6qj2z9r9a 3IQrElKvhNK1mUnLQbBaiVrdxts/BciRx6ieqOIKJRfNzEbB/rs6P82d+Ob4sk86nElu ZPuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716388364; x=1716993164; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AZYPK/FgXNUOZ9tWIezGOV8VXxrkmCDC2y+SYMRQ/0Q=; b=WEOgxIiSoxkZwiwStN6AdNn2kprWJGrbZeL7LaKkCi6xZH2QFurDwU+d8okeyTA3fb 6gD/5UhRpZBsyYFNxJAa5Tw4OZhWiv64yKmN2O99obx5zozMhz5UwTsWrQOPo8iica8s X+sJ2EWj0BCyZaAwp0I57XiPyHGBX7ovsbbQgpwK1cluzW7pABuxMYszqQ+0XmCbavW4 +5tLCwrjk8AqAJaPEQxA8Xjy8f6Q+GSboQzhcCvmECdx9n7KrWLQIY0OiqzMNRGxVyt3 mYaxLLvGnuLYyYg29ZDT+/ifvsS4KEuLoL5xSpZ+5AdtJoWgVu/dcjynCbcJRdyvM/W5 FxBQ== X-Forwarded-Encrypted: i=1; AJvYcCWLhRIAiWjbm7N8f3n+Q4dltEEIo+UjJY1gWp2zVoxoUCyVecsRXDtCqygSFipeV8F7b/lgevq+EcFuWV+LtCNn2kpeteJZwgPeQ61OQ/c4j/HB X-Gm-Message-State: AOJu0Yy7oTj3W8Q1Cvc3qcOUexLA2HdGkltKxXxF1YGIzwfOCiyxTTYO i/sP3gpVEhW5l7PNe2qxt6v0WegK0vDpvIE7A1BTcFEh0aH+tOU0i0BHbqXE11O2t9qtV+8Xx+z fP3E2i5sgggFBvwIozz+Ihrzeh1g= X-Google-Smtp-Source: AGHT+IGlSgY5GwsUEoMe4TdTlGLw3W1jIQwKIADmS6aXRKwJxAakVTddiCrUYy4tYG3hlXn9zJHg4Kgrkp1lMUkPz04= X-Received: by 2002:a17:906:1ed0:b0:a5a:5634:a83a with SMTP id a640c23a62f3a-a62280815camr131538566b.17.1716388363583; Wed, 22 May 2024 07:32:43 -0700 (PDT) MIME-Version: 1.0 References: <3222278.1716139817@sss.pgh.pa.us> <61182a55-87e6-4019-9274-5f2cc5c38f31@app.fastmail.com> In-Reply-To: From: Robert Haas Date: Wed, 22 May 2024 10:32:32 -0400 Message-ID: Subject: Re: State of pg_createsubscriber To: Amit Kapila Cc: Euler Taveira , Tom Lane , pgsql-hackers@lists.postgresql.org, Euler Taveira , Peter Eisentraut 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, May 20, 2024 at 2:42=E2=80=AFAM Amit Kapila wrote: > Just to summarize, apart from BF failures for which we had some > discussion, I could recall the following open points: > > 1. After promotion, the pre-existing replication objects should be > removed (either optionally or always), otherwise, it can lead to a new > subscriber not being able to restart or getting some unwarranted data. > [1][2]. > > 2. Retaining synced slots on new subscribers can lead to unnecessary > WAL retention and dead rows [3]. > > 3. We need to consider whether some of the messages displayed in > --dry-run mode are useful or not [4]. Amit, thanks for summarzing your understanding of the situation. Tom, is this list complete, to your knowledge? The original thread is quite complex and it's hard to pick out what the open items actually are. :-( I would like to see this open item broken up into multiple open items, one per issue. Link [4] goes to a message that doesn't seem to relate to --dry-run. --=20 Robert Haas EDB: http://www.enterprisedb.com