<div dir="ltr"><div>Hi,</div><div><br></div><div>I am trying to read a project that is stored in a postgreSQL/PostGIS database, but I am struggling with getting it correctly. I am using the following code<br></div><div><br></div><div>project = QgsProject.instance()<br>uri = 'postgresql://my_user:my_pass@localhost:5432?sslmode=disable&dbname=my_database&schema=my_schema&project=my_project_name'<br>project.read(uri)</div><div><br></div><div>The last command always return false, and no project is loaded<br></div><div><br></div><div>The documentation of QgsProject.read() only mentions filenames, not uri, but this answer seems to propose this uri format that would work:</div><div><br></div><div><a href="https://gis.stackexchange.com/a/354615/6191">https://gis.stackexchange.com/a/354615/6191</a></div><div><br></div><div>Any suggestions on how to solve or debug this? I get no error messages from the read method.</div><div><br></div><div>Thanks,</div><div><br></div><div>Aleandre Neto<br></div></div>