<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Thanks Alessandro - that did the trick... <br>
</p>
<p>This works:</p>
<p><font face="monospace">metadata =
QgsProviderRegistry.instance().providerMetadata('postgres')<br>
conn = metadata.connections(<b>False</b>)<br>
for c in conn.keys(): print(c)</font><br>
<br>
As I suspected: The bug was placed 50 cm from the computer screen,
i.e an "error-50"</p>
<pre class="moz-signature" cols="72">Med venlig hilsen / Kind regards
Bo Victor Thomsen</pre>
<div class="moz-cite-prefix">Den 25-10-2021 kl. 11:54 skrev
Alessandro Pasotti:<br>
</div>
<blockquote type="cite"
cite="mid:CAL5Q671z_pMKdk3XNWf7L5oeNyCKY=jQGkWj3=J+=bC_PB4QaQ@mail.gmail.com">
<div>
<pre style="margin:0px;text-indent:0px"><span style="color:rgb(192,192,192)"></span><span style="font-weight:600;font-style:italic;color:rgb(0,103,124)">connections</span>(<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)">bool</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(9,46,100)">cached</span><span style="color:rgb(192,192,192)"> </span>=<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)">true</span><span style="color:rgb(192,192,192)"> </span>)</pre>
</div>
<div><br>
</div>
</blockquote>
</body>
</html>