<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Good afternoon,<br>
    <br>
    Windows 8.1 pro 64 bits<br>
    QGIS version 3.10.0-A Coruña QGIS code revision 6c816b4204<br>
    <br>
    I have a postgresql db with Postgis enabled to which I connect using
    a pg service.<br>
    It was working fine with the default profile.<br>
    <br>
    I created a new profile (settings/user profiles). My projects were
    still displayed (tables located in the db) and looked ok.<br>
    <br>
    But when I wanted to add a new table from datasource
    manager/postgresql I was prompted the first time to create a
    connection. I created the same one as I had for the default profile.
    I tested the connection and it passed. I clicked to 'connect' and
    nothing happened: no table list displayed. I checked with DB/DB
    manager and I can see my tables.<br>
    I switched back to the former default profile: same behaviour (no
    tables listed). <br>
    <br>
    There are  different qgis-auth.db files (different sizes) in each
    profile folder of
    C:\Users\<myuser>\AppData\Roaming\QGIS\QGIS3\profiles (don't
    know how to read them though)<br>
    <br>
    In the logs I found the following messages (PostGIS section):<br>
    2019-11-16T12:27:02     WARNING    NOTICE: row number 0 is out of
    range 0..-1<br>
    2019-11-16T12:28:20     WARNING    Erroneous query: <long
    query> [ERROR: permission denied for schema topology<br>
    2019-11-16T12:28:20     WARNING    NOTICE: WARNING: there is no
    transaction in progress<br>
    2019-11-16T12:28:20     WARNING    Unable to get list of spatially
    enabled tables from the database<br>
    <br>
    I don't have any problem with the default user and QGIS version
    3.4.13-Madeira<br>
    (I have not tried to create another profile with 3.4.13 because I
    need a working version of qgis).<br>
    <br>
    The error message seems to point toward a lack of permission, but
    that same user can run that query within pgadmin without any
    problems.<br>
    <br>
    Any idea where to look? I looked on internet but to no avail ... <br>
    <br>
    Thank you in advance<br>
    Laurence Bechet<br>
    <b><span style="font-size:12.0pt;color:#006600">ARK IN THE PARK
        Volunteer Co-Ordinator</span></b><b><span
        style="font-size:14.0pt;color:#006600"><br>
      </span></b><b><span style="font-size:12.0pt;color:#006600">Cascades
        Ranger Station</span></b><b><span
        style="font-size:12.0pt;color:#006600"><br>
        Falls Road, Waitakere</span></b>, Auckland<b><span
        style="font-size:12.0pt;color:#006600"><br>
      </span></b>
  </body>
</html>