<div dir="auto">Hi<div dir="auto">I have never heard of such a setup and QGIS will not support this our of the box. You might split qgis project for editors wired on 5432 and read only projects on 5433. But nothing automatic to switch port when entering edit mode. </div><div dir="auto"><br></div><div dir="auto">Side question, I don't understand why you would use different ports. </div><div dir="auto">I've used pgpool for replication / load balancing and fail over for years and it works well. Even if it is often overkill and the reason for more issues than a single node correctly sized. </div><div dir="auto"><br></div><div dir="auto">I learnt that the simpler the better. And postgres is extremely forgiving, so you may sometimes question if a cluster is really needed. </div><div dir="auto">Best regards</div><div dir="auto">Régis</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le jeu. 22 avr. 2021 à 20:08, Rebassa Oliver, Joan <<a href="mailto:joan.rebassa@imi.palma.cat">joan.rebassa@imi.palma.cat</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Buenas tardes:<br>
</div>
<div>
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="background-color:rgb(255,255,255);display:inline!important"><br>
</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="background-color:rgb(255,255,255);display:inline!important">Tenemos configurado un cluster de base de datos de PostgreSQL de forma que el nodo maestro de este cluster es el que permite las operaciones de escritura en base de datos a través del
 puerto 5432 y el resto de nodos que forman el cluster son nodos esclavos a los que se replican los cambios que se han hecho en el maestro y asumen las operaciones de lectura en base de datos por el puerto 5433, las aplicaciones que han de acceder a las bases
 de datos deben poder tener definidos dos datasources: uno para las operaciones de escritura por el puerto 5432 y otro para lectura por el puerto 5433, queremos saber si Qgis soporta esta configuración.</span><br>
</div>
<div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Gracias.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Good afternoon:
<div><br>
</div>
<div>We have configured a PostgreSQL database cluster so that the master node of this cluster is the one that allows database write operations through port 5432 and the rest of the nodes are slave nodes, the changes that have been made in the master are replicated
 to the slave nodes and they assume the database read operations through port 5433, the applications that have to access the databases must have two datasources configured: one for database write operations (port 5432) and another for read operartions (port
 5433), we want to know if Qgis supports this configuration.</div>
<div><br>
</div>
Thanks.<br>
</div>
<div id="m_-4250825913977369523x_Signature">
<div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank" rel="noreferrer">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div>