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 1tsDoA-00GmGV-Tm for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Mar 2025 04:35:07 +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 1tsDo9-00DdzP-2U for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Mar 2025 04:35:05 +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.94.2) (envelope-from ) id 1tsDo8-00DdzH-Op for pgsql-hackers@lists.postgresql.org; Wed, 12 Mar 2025 04:35:04 +0000 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tsDo6-002Lnl-2d for pgsql-hackers@lists.postgresql.org; Wed, 12 Mar 2025 04:35:03 +0000 Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-224341bbc1dso85638485ad.3 for ; Tue, 11 Mar 2025 21:35:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741754102; x=1742358902; 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=Us/rvdyOAl30BbElsodKVyXHuWlhX9/GDiN67+iehf8=; b=nJUOS5PoGswYbYwB3jVKBkULAz9VT9c0AfjcUbrsEZs89i+ol9hLzVEQP+c/c1D2kt h2041gql0eL9xnMQFANOA71dsWuZfgJoMEMxeHtjO4aScZuQxXlkBxBEMoJpb99tgsUS ScjEYSICstRoPVbNekEq9A88h6xdAqjlczZfQhQqoEb0oNvfd/AfPLOMHMfYAokyiS+1 5J7Hipa4f1DxYJk5Sr8ma7LPayqZyV2jifUgLwpX7hfQUvsp0XKqAEGYxZZbbFyI7pRa O+sCKzay3hjZuiVRasIFC3vCf9PsjZqjpA8SuTCFdvF3C/17aicmkA+Ue3GdTG+yqOoj Vt3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741754102; x=1742358902; 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=Us/rvdyOAl30BbElsodKVyXHuWlhX9/GDiN67+iehf8=; b=Sz/EfMmw36feR4GwXsXzTkl9kP7vnt9Sf/2GBoeWS05CEcUr1kBxeuoVVC6PWV1wmz IjLKsD+hrgxOum/+4OSawwTC0AGeScq55PfNrFFTWce6xwmDuCinedhNShaQLJmtnrMe p7GN0LmcEPLj4QJABus3A5y/3mJqL9O7gDzxbCM5EUq96hg/EjgbQ4STGJTjBJyaXkRb 7QTqPAzYPdoyiVFjnfFcsF/i2PgL42QwqylEqJDcoOCRoXIv2jFNQA0QpFAI9Xi+Y9yC g9EGxMUB1QKPt+1IiDjX6lNn5+bCvsw2vDozx9hgJaL1wkoSTZarOTALXIRwTPQIb3MD rM9g== X-Forwarded-Encrypted: i=1; AJvYcCWF005/Vo6AtGt7br1N4MCbU25ibRNyjLDRYKX4GastXYLxq/n3KbEBeY3UzIvS7TFRVrE30uCqXKvLeWNK@lists.postgresql.org X-Gm-Message-State: AOJu0YzZ8D1tAWw/H+KEfrqgaGcxNUT9K1XHqAt5+3WN+qotK4Dc9JfJ kQz8FsevwzjXXJDungvB0mYTtMihscYT1+oqTRW+h+rENjnDiDOoUCwEWV6lYl/2/sPW7yBP/3D ADG8mCJ+kMP0pWODzZakvobJHXG0= X-Gm-Gg: ASbGnct024oQjWo5IiyWMFEH9wcHOlDwVQZFDxviyCyDyCaUUKXx/bIMLljVVMpYyvO f4atLIwmQTz8KSNhEu+4cTteAP7EmvRVQEYTP514fWte4xClkiSjbVISM4tz/tTO+JspOMI/Fbd 6qbEdl+GhAM/rslHTRHsiBWUW4rIRh X-Google-Smtp-Source: AGHT+IGcOMzJYJnO+HbpbBLvyKMQOiQUJn5L5TusmDo3cQAqTRHAqxUif0H/6u0QFrtWsnf66SPxX42C7J6JxNGsLGg= X-Received: by 2002:a05:6a21:9d48:b0:1f5:790c:947 with SMTP id adf61e73a8af0-1f58cb3daa4mr8410856637.19.1741754101530; Tue, 11 Mar 2025 21:35:01 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Amit Kapila Date: Wed, 12 Mar 2025 10:04:49 +0530 X-Gm-Features: AQ5f1JqLYRQyu_tbQ1XJLDZPWW53omdIqi2Gi-rra_JNwOcJP3SdugZth_F8lYY Message-ID: Subject: Re: Adding a '--clean-publisher-objects' option to 'pg_createsubscriber' utility. To: "David G. Johnston" Cc: Peter Smith , Shubham Khanna , Nisha Moond , "Hayato Kuroda (Fujitsu)" , Shlok Kyal , 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, Mar 12, 2025 at 9:43=E2=80=AFAM David G. Johnston wrote: > > I=E2=80=99m honestly question how much value this provides - no improveme= nt here seems like a viable choice. Let them issue the drop commands they = desire manually. This doesn=E2=80=99t feel like something one should/would= automate. > There is a good chance of mistakenly dropping the required objects manually after the subscriber is converted. One can mistakenly drop the required publication unless they have some strict rule to do it immediately after the tool has converted standby to subscriber. Providing the commands via file is a way, but as a user, I would prefer to get the things done automatically via a tool instead of me doing it afterward unless there is no other way.. --=20 With Regards, Amit Kapila.