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 1s8wjL-00GLJl-Vt for pgsql-hackers@arkaria.postgresql.org; Mon, 20 May 2024 06:42:45 +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 1s8wjL-00Gf7H-Fz for pgsql-hackers@arkaria.postgresql.org; Mon, 20 May 2024 06:42:43 +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 1s8wjL-00Gf78-6M for pgsql-hackers@lists.postgresql.org; Mon, 20 May 2024 06:42:43 +0000 Received: from mail-ot1-x330.google.com ([2607:f8b0:4864:20::330]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1s8wjH-0019J6-7H for pgsql-hackers@lists.postgresql.org; Mon, 20 May 2024 06:42:42 +0000 Received: by mail-ot1-x330.google.com with SMTP id 46e09a7af769-6f0f7ec684cso1295401a34.0 for ; Sun, 19 May 2024 23:42:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716187358; x=1716792158; 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=f2COT8HIOxt036SeSeq2w0YRaHmmeV50jJSCiVhJNeg=; b=Cau/6/z4LVQxbGx59fPu4cmnq78M62HsJDMQrSoz9caCB9Duzutr1Cbueosg+mayq2 45V6feVWvqz3rtT8819ZnAs12uUqzz+mm20lq0pWRlsMrsdWi4AX2BIuO5l3rQDNhAuS 5ts7IrtqX0cYcEOV+fN9TmJhB+LuDYaefnrniQd+uK0YC3RZ+NoRPDTorEahoGItXaU3 fFWkth54Il0rVm/mcZC6XvrYaTE/xe68OQKjKH8QtELbthKfGdpmfDu7wmAakb4yZo8H gcT88daB/zvXV8s9ccPMr2riJ7MYEFYfe5o+r4fOQfTViJucsYWO3Wa7fDl0im9y/rZ2 dSlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716187358; x=1716792158; 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=f2COT8HIOxt036SeSeq2w0YRaHmmeV50jJSCiVhJNeg=; b=ND1R8MePIgapUbAoRrTGIErDRASoYvn+oGMAcPuD57VkL5r5V9WVAs7gmGQuMCsBmd DvJLfCQNmO3EHwaAG+wE/YxwXDWamF/z1RYAw8zoGPDZU0kOGOebfdGuTrdwiI3aZ2Lc DuJQzdnDfGPFzxXNshTXf3j7mJZjZAR5Rpx8xm6UaITC2/2GgRxO5d11YHAmh7f3csPv 3a9F0LlM+13guIzT8aV3vxX7ElOc1t6h/qX+tjgLnW505iP2shyyxZysa3VouM7vbq/i dU9YSk2u6W50q822B497EtzRPaskGqEEvq2mC4IRKsNO4E/pm4kMGJ/eBbxrCeQZJGR2 1jfg== X-Forwarded-Encrypted: i=1; AJvYcCVhT7IwgQYixtgsynpYWz7PdsTHk1X+OItvF6DIEsqIQykDONa6b/KouLOzaPMIQrHsYH0sXId9nleolkHIP4jSXikrAcGTQSAJQzXUMT6rbi0z X-Gm-Message-State: AOJu0YweCsQeEuHytlzsm5R37OvqbYY/vNLHh8ZPvuKyFRNwTAfG/3s2 8zMcjm/v6wmU3AyK55sPd6wxMe69po6XW/vbOlpsaAxtj9dEn6g+tllNx9J5PDTk514eh8o3zCX 1c2PrbGap+gouzf27q9g9w7peLO0= X-Google-Smtp-Source: AGHT+IEoFJGq1kkISKLFDKfHnY8mMXENRRfObNdFHAoLS7NTzRPIkaNdZCbirIkxlLQL5DG0ZMmRA8e54PIkj2Fd9ds= X-Received: by 2002:a05:6870:9a06:b0:23f:2931:9f97 with SMTP id 586e51a60fabf-24172a9ca91mr32150234fac.28.1716187358213; Sun, 19 May 2024 23:42:38 -0700 (PDT) MIME-Version: 1.0 References: <3222278.1716139817@sss.pgh.pa.us> <61182a55-87e6-4019-9274-5f2cc5c38f31@app.fastmail.com> In-Reply-To: <61182a55-87e6-4019-9274-5f2cc5c38f31@app.fastmail.com> From: Amit Kapila Date: Mon, 20 May 2024 12:12:26 +0530 Message-ID: Subject: Re: State of pg_createsubscriber To: Euler Taveira Cc: 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 Sun, May 19, 2024 at 11:20=E2=80=AFPM Euler Taveira = wrote: > > On Sun, May 19, 2024, at 2:30 PM, Tom Lane wrote: > > I'm fairly disturbed about the readiness of pg_createsubscriber. > The 040_pg_createsubscriber.pl TAP test is moderately unstable > in the buildfarm [1], and there are various unaddressed complaints > at the end of the patch thread (pretty much everything below [2]). > I guess this is good enough to start beta with, but it's far from > being good enough to ship, IMO. If there were active work going > on to fix these things, I'd feel better, but neither the C code > nor the test script have been touched since 1 April. > > > My bad. :( I'll post patches soon to address all of the points. > 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]. [1] - https://www.postgresql.org/message-id/CAA4eK1L6HOhT1qifTyuestXkPpkRwY= 9bOqFd4wydKsN6C3hePA%40mail.gmail.com [2] - https://www.postgresql.org/message-id/flat/3fa9ef0f-b277-4c13-850a-8c= cc04de1406%40eisentraut.org#152dacecfc8f0cf08cbd8ecb79d6d38f [3] - https://www.postgresql.org/message-id/CAA4eK1KdCb%2B5sjYu6qCMXXdCX1y_= ihr8kFzMozq0%3DP%3DauYxgog%40mail.gmail.com [4] - https://www.postgresql.org/message-id/flat/3fa9ef0f-b277-4c13-850a-8c= cc04de1406%40eisentraut.org#152dacecfc8f0cf08cbd8ecb79d6d38f --=20 With Regards, Amit Kapila.