Regarding(Read Replica in RDS) - Mailing list pgsql-admin

From ROHIT SACHDEVA
Subject Regarding(Read Replica in RDS)
Date
Msg-id CAKDb7aEhZ6hoMbe7BUOaDbZ-AO7dDpjpLBbe+N7qJ=f+sb65LA@mail.gmail.com
Whole thread Raw
Responses Re: Regarding(Read Replica in RDS)
List 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

pgsql-admin by date:

Previous
From: Joe Conway
Date:
Subject: Re: Upgrade Rhel7.9 to Rhel9.3
Next
From: Ron Johnson
Date:
Subject: Re: Regarding(Read Replica in RDS)