Regarding(Read Replica in RDS)

Поиск
Список
Период
Сортировка
От ROHIT SACHDEVA
Тема Regarding(Read Replica in RDS)
Дата
Msg-id CAKDb7aEhZ6hoMbe7BUOaDbZ-AO7dDpjpLBbe+N7qJ=f+sb65LA@mail.gmail.com
обсуждение исходный текст
Ответы Re: Regarding(Read Replica in RDS)
Список 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 по дате отправления:

Предыдущее
От: Joe Conway
Дата:
Сообщение: Re: Upgrade Rhel7.9 to Rhel9.3
Следующее
От: Ron Johnson
Дата:
Сообщение: Re: Regarding(Read Replica in RDS)