I just have done
pg_basebackup -h primary_host -p primary_port -D PGDATA -U replication user
and I jsut wanted to restart the db, so I did
sudo su - postgres
sudo service postgres restart
and the ec2 says to me
Respect the privacy of others, think before you type, ...
and it asks me password for postgres. But since I have created this ec2 instance, I have never set any password for postgres. So there is no password for this actually, but it keeps asking me...
I guess there might be something related to pg_basebackup, but I have no idea, because the primary db also has no specific password..
What should I do here, thanks