You can use 2 different ports and create 2 instances.
One can act as master and another as slave.
But slave never allow write operation on itself.
If you want both servers to accept write transaction then you should use
BDR (postgres) or MMR (Enterprisedb).
Regards
Atul
On Wednesday, January 6, 2021, Yambu <hyambu(at)gmail(dot)com> wrote:
> Hello
>
> Is it possible to make one server act as master and as a slave at the same
> time?
>
> This will mean writes are permitted on it.
>
> regards
>