Question on removing primary replication node using repmgr?

From: "Lu, Dan" <Dan(dot)Lu(at)sig(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Question on removing primary replication node using repmgr?
Date: 2020-05-20 20:01:03
Message-ID: MN2PR19MB361337CFB8DDE55B9E9C9D7B94B60@MN2PR19MB3613.namprd19.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

I used repmgr extension for Postgresql to setup replication.

I want to remove the replication because it appears WAL files are generated even after unregistering the standby instance and putting primary instance in no archivelog mode.

Can you help?

host:> repmgr -f /home/postgresdbad/dbalocal/admin/repmgr.conf primary unregister
ERROR: node "host" (ID: 1) is the current primary node, unable to unregister

host:> repmgr -f /home/postgresdbad/dbalocal/admin/repmgr.conf primary unregister --node-id 1
ERROR: node "host" (ID: 1) is the current primary node, unable to unregister

ID | Name | Role | Status | Upstream | Location | Priority | Timeline | Connection string
----+----------------+---------+-----------+----------+----------+----------+----------+-----------------------------------------------------------------
1 | host | primary | * running | | default | 100 | 1 | host=host user=repmgr dbname=repmgr connect_timeout=2

________________________________

IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses.

Browse pgsql-general by date

  From Date Subject
Next Message Patrick FICHE 2020-05-20 20:12:04 Re: SET ROLE and search_path
Previous Message Rob Sargent 2020-05-20 19:32:49 Re: SET ROLE and search_path