pg_rewind and replication user

Поиск
Список
Период
Сортировка
От Wiwwo Staff
Тема pg_rewind and replication user
Дата
Msg-id CAFe70G5SN=MoKDwAWv62mcSdjsDU9r_jyvOE7qU_ya65=VbuFw@mail.gmail.com
обсуждение исходный текст
Ответы Re: pg_rewind and replication user  (Mateusz Henicz <mateuszhenicz@gmail.com>)
Список pgsql-general
Hi!
Provided my replication user created with
CREATE USER repl_user REPLICATION LOGIN ENCRYPTED PASSWORD'....';

If I run pg_rewing referring to this user
postgres@host1:~: pg_rewind -D $PGDATA --source-server="host=nre_primary port=5432 user=repl_user passfile='/var/lib/postgresql/.pgpass' dbname=postgres" -P -R

I get
pg_rewind: connected to server
pg_rewind: error: could not fetch remote file "global/pg_control": ERROR:  permission denied for function pg_read_binary_file

My question/doubt is: i can need to run pg_rewind referring to a superuser only? Or i am "just" forgetting some grant to the replication user?

Thanks!

В списке pgsql-general по дате отправления:

Предыдущее
От: Erik Wienhold
Дата:
Сообщение: Re: moving a database to a new 15.1 server
Следующее
От: Mateusz Henicz
Дата:
Сообщение: Re: pg_rewind and replication user