Im trying to setup a streaming replication on a rds postgresql database using pg_recvlogical. When I send the command to start streaming
pg_recvlogical -d <database> -h <host> -p <port> --slot (slot_name) --start -f -
I receive the message:
"could not send replication command "Show data_directory_mode": ERROR: must be superuser or replication role to run this operation".
Im using the master user, which already has superuser role, and set rds.logical_replication to 1 on parameter group associated to the database. Anyone can help to undestand how can I resolve this issue?