Setup Master-Slave replication with DML changes in Slave
If you only use Streaming replication, it doesn't support the write operation on the slave node. Currently,  PostgreSQL  doesn't support  multiple master itself, If you want multiple master solution,  I suggest you use PostgreSQL-XC.