<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div dir="ltr">
<div>Hi,<br>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">Le mar. 23 nov. 2021 à 09:13, Pekka Sarkola <<a href="mailto:pekka@gispo.fi">pekka@gispo.fi</a>> a écrit :<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div dir="ltr">Hi Frank and lists members,
<div><br>
</div>
<div>We use to identify different PostgreSQL clusters/databases with PGServicefile: this gives flexibility to change PostgreSQL cluster and/or databases without annoying users. Authentication of the users is done via a personal authentication database.</div>
<div><br>
</div>
<div>Old, but still valid QGIS and PostgreSQL service connection file documentation is here: <a href="https://docs.qgis.org/2.14/en/docs/user_manual/working_with_vector/supported_data.html#service-connection-file" target="_blank">https://docs.qgis.org/2.14/en/docs/user_manual/working_with_vector/supported_data.html#service-connection-file</a></div>
<div><br>
</div>
</div>
</div>
</blockquote>
<div>Up to date link available at <a href="https://docs.qgis.org/3.16/en/docs/user_manual/managing_data_source/opening_data.html#postgresql-service-connection-file">
https://docs.qgis.org/3.16/en/docs/user_manual/managing_data_source/opening_data.html#postgresql-service-connection-file</a></div>
<div><br>
</div>
<div>Regards,</div>
<div>Harrissou</div>
<div><br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div dir="ltr">
<div></div>
<div>Rgs,</div>
<div><br>
</div>
<div>Pekka</div>
<div>
<div>
<div dir="ltr">
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<p><span style="font-size:12.8px">Pekka Sarkola<br>
</span><span style="font-size:12.8px">Gispo Oy<br>
</span><a href="mailto:pekka.sarkola@gispo.fi" style="font-size:12.8px" target="_blank">pekka.sarkola@gispo.fi</a><span style="font-size:12.8px">   - GSM +358 40 725 2042<br>
</span><a href="http://www.gispo.fi/" style="font-size:12.8px" target="_blank">www.gispo.fi</a><span style="font-size:12.8px"> –
</span><a href="http://www.paikkatieto.com/" style="font-size:12.8px" target="_blank">www.paikkatieto.com</a></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
</div>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">ma 22. marrask. 2021 klo 21.42 Frank Broniewski (<a href="mailto:hallo@frankbroniewski.com" target="_blank">hallo@frankbroniewski.com</a>) kirjoitti:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Hi fellow QGIS user!<br>
<br>
I am scratching my head on the following problem. I want to create a <br>
QGIS project template which has PostGIS layers in it. I want to be able <br>
to pass this template to other users who might use them for different tasks.<br>
<br>
The problem now is the connection string to the PostGIS database. When <br>
using the authentication manager each PostGIS connection gets its own ID <br>
which in turn is then referenced in the connection string to the layer. <br>
But now this ID to the PostGIS connection is different for each user, so <br>
the stored connection string in the template is not valid anymore. And <br>
each user has his own credentials for logging into PostGIS as well.<br>
<br>
I see that I can give a custom ID to a connection in the authentication <br>
manager, but it is locked by default, so I am hesitant to unlock it. But <br>
is this a viable option? Create the PostGIS connection under the same ID <br>
for each user?<br>
<br>
There's also the PostgreSQL connection service file [1] which might be <br>
an option? Does anyone have some experience to share, especially when <br>
talking Windows PC?<br>
<br>
How do you manage PostGIS connections for "simple" users on a somewhat <br>
larger scale? I am talking about 20 users, just enough to be annoying <br>
enough for manual deployment ...<br>
<br>
Many thanks for any tips,<br>
<br>
Frank<br>
<br>
<br>
[1] <a href="https://www.postgresql.org/docs/12/libpq-pgservice.html" rel="noreferrer" target="_blank">
https://www.postgresql.org/docs/12/libpq-pgservice.html</a><br>
<br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">
https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">
https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote>
</div>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">
https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">
https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote>
</div>
</div>
</body>
</html>