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 1tqY1U-006gp8-7P for pgsql-general@arkaria.postgresql.org; Fri, 07 Mar 2025 13:45:56 +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 1tqY1S-004VEo-NX for pgsql-general@arkaria.postgresql.org; Fri, 07 Mar 2025 13:45:54 +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 1tqY1S-004VEg-CP for pgsql-general@lists.postgresql.org; Fri, 07 Mar 2025 13:45:54 +0000 Received: from mail-io1-xd30.google.com ([2607:f8b0:4864:20::d30]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tqY1O-001VOi-1U for pgsql-general@lists.postgresql.org; Fri, 07 Mar 2025 13:45:53 +0000 Received: by mail-io1-xd30.google.com with SMTP id ca18e2360f4ac-85ae9566c08so55668439f.0 for ; Fri, 07 Mar 2025 05:45:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741355150; x=1741959950; 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=R42e6A/2aL71FyhaTNYQSTkYB9RnUWpTeJE9Nh3eR/E=; b=Y/9xNHvvsRZPDH+T9gd7grN6iDc7byChOjTJLrpJJ5sOktKSaaBRPNh3FRDuTQFV68 uGYb7mNd6NILxjIRL6U9LtHB8Hn+7tRdBAoTptBFk6mI6Jqv+0rnJ2vZ+Kp4kBCwNGjn Bg3+OTbUYW7810X3l2PhmcIugSMxSfnVk7XXS5isKs5t3QPxXlqzt5bRpxIOUd6THp0X AQM3NGtvI5JbIOHUCeowhVeittoMym77NQxqR9UlyJuvnjipX1agocf2Zz83Gcau4B/Y fKNgOqk5pG2aL/Y2fD9jKxzanp/LUAdYYU1GS3zVi5VX75Ht1azGwJ/jF4Tvn3BTqswo JDbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741355150; x=1741959950; h=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=R42e6A/2aL71FyhaTNYQSTkYB9RnUWpTeJE9Nh3eR/E=; b=YtVqgvC/BCjdXe68zT47pj9R7qY7QWTvFrdxW9rA/diG0u2YaZtDDNO60xvvNWAuJA wiNZqLS3Sc+6nwM+Efy1ae1qSixFPG9oSoPmGasHujeC4ZW8NgQZf5mScs/7Kzk9+nb2 t4xV5L+BdFgjjYh96DkEAxAQd5IROb0r57bsa+N8A3QeO554O3IOjHozPDRDOw1vL//1 6mU11glGBg4OUGoodBUZqoFUETxgGoUZZn592rLN6+Rm20XxLxCl/Pl76NfrBqMn8QmA 5LfKhlTOdzu+AEUNAC0RLXylgUgfiFnp5KhZy9PF/mHJ9OvGGDTOzObeESgh2iCmyvpY Mh1Q== X-Forwarded-Encrypted: i=1; AJvYcCV+M8xhXhA9uo3NM6rYzoUnHl76nLrTmEF4NsoMVLrtk58dzApwQKgW5I6VO7ZRmAGpHl7VhsRg3G+mW1kf@lists.postgresql.org X-Gm-Message-State: AOJu0YxXgvG5xNoH8WWGfGSNhGEeNk00fKtRQVP+JikDohm5uepqtAkv 755W79Fcrp2bw38ZMTOUrg6IFKbPM5nYbKFcls10aV98EFLrjSg9AOQDcZxlb6cjOa1uHfW98aV wSA8jhukB3NOEN/gIGZObeneqgd0= X-Gm-Gg: ASbGncu5UnYpmL03tJAnWx/07gZd6hJjhWeDKfwRU/lfH7Dgx1gflNZl3h8up1BN/wV kxYSzteIg2ZuAcgjaCJqCMybh2dHYL02e43cp4in5oG9Iy+TQzbjgGxWSK4RD5G5tTnrfL3wObT cRohMRv5R0tZcKsU/Xab2SKeUO1WymACChRUOZt3aKjauU6hdWmh14hH/ISx1M X-Google-Smtp-Source: AGHT+IGjIc/LS9I6CcbK0NySbLIMr09rw2nkbDCAXikB3TgETb6jxERBpqY//Gox4VsbudI9b3uKEQD5/cdMd5YlpBQ= X-Received: by 2002:a05:6e02:180b:b0:3d3:d9f3:6314 with SMTP id e9e14a558f8ab-3d441a39956mr47992605ab.18.1741355149278; Fri, 07 Mar 2025 05:45:49 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Greg Sabino Mullane Date: Fri, 7 Mar 2025 08:45:12 -0500 X-Gm-Features: AQ5f1Jr96hTXFmBNghh9YUEpNA1wsv7jNMZaDraiedtoTB18qQ7T8z4-IBQ4hyQ Message-ID: Subject: Re: Review my steps for rollback to restore point To: chandan Kumar Cc: "David G. Johnston" , Laurenz Albe , "pgsql-general@lists.postgresql.org" Content-Type: multipart/alternative; boundary="00000000000019caae062fc0d7a8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000019caae062fc0d7a8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Mar 6, 2025 at 6:49=E2=80=AFAM chandan Kumar wrote: > need any correction or advise. > Honestly, this all seems overly complex and fragile. I'm not sure what the overall goal is, but if it's to have a general PITR solution, use pgBackRest. If it's just to have a fall back method for a particular change, an easier solution is to stop replication, apply changes, and promote the replica if something goes wrong. Either way, you should have a test system setup that you can try out your steps on. If a step fails and you do not understand why, this list is a great resource. Practice this a lot on test systems until it all becomes second nature. Cheers, Greg -- Crunchy Data - https://www.crunchydata.com Enterprise Postgres Software Products & Tech Support --00000000000019caae062fc0d7a8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, Mar 6, 2025 at 6:49=E2=80=AFAM ch= andan Kumar <chandan.issyog= a@gmail.com> wrote:
need any correction or advise.

Honestly, this all seems overly complex and fragile. I'm not sure wh= at the overall goal is, but if it's to have a general PITR solution, us= e pgBackRest. If it's just to have a fall back method for a particular = change, an easier=C2=A0solution is to stop replication, apply changes, and = promote the replica if something goes wrong.

Eithe= r way, you should have a test system setup that you can try out your steps = on. If a step fails and you do not understand why, this list is a great res= ource. Practice this a lot on test systems until it all becomes second natu= re.
=C2=A0
=
Cheers,
Greg

--
Enterprise Postgres Softwar= e Products & Tech Support

--00000000000019caae062fc0d7a8--