Regarding(Read Replica in RDS)

From: ROHIT SACHDEVA <sachdeva(dot)rohit648(at)gmail(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Regarding(Read Replica in RDS)
Date: 2024-03-07 12:43:08
Message-ID: CAKDb7aEhZ6hoMbe7BUOaDbZ-AO7dDpjpLBbe+N7qJ=f+sb65LA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi Team,

I have a setup in which there is one main database and one sharded database.
Seeing the requirement regarding MIS, we plan to have a read replica of
this setup, so we launch two read replicas, one for the main database and
another for the sharded database.
Now that I want to change the hostname in Postgres fdw in a read replica, I
am getting this error:.
ALTER SERVER shard_stg OPTIONS (SET host 'hostanme', SET port '5432');

ERROR: cannot execute ALTER SERVER in a read-only transaction
SQL state: 25006

Can anyone let me know how to change the read replica to write so that I
can execute this query once?

--
Have a Good day !!!

Regards
Rohit Sachdeva

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Ron Johnson 2024-03-07 13:47:45 Re: Regarding(Read Replica in RDS)
Previous Message Joe Conway 2024-03-06 22:23:02 Re: Upgrade Rhel7.9 to Rhel9.3