Postgres Row Level Security and BDR
One way to achieve BDR (in the PostgreSQL) use is pgPool, which has multi-master replication with failover.
For a complete tutorial, please use the official product site or wiki even at the addresses below:


pgpool


http://www.pgpool.net/mediawiki/index.php/Main_Page

https://wiki.postgresql.org/wiki/Pgpool-II