<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Hi Régis,<br>
<br>
The trust option is used in QgProject with
QgsVectorLayer::setReadExtentFromXml<br>
<a class="moz-txt-link-freetext" href="https://github.com/qgis/QGIS/blob/master/src/core/qgsproject.cpp#L3304">https://github.com/qgis/QGIS/blob/master/src/core/qgsproject.cpp#L3304</a><br>
<br>
Then in the case of a postgres layer, the checkUnicityKey is
disabled<br>
<a class="moz-txt-link-freetext" href="https://github.com/qgis/QGIS/blob/master/src/core/qgsvectorlayer.cpp#L1684">https://github.com/qgis/QGIS/blob/master/src/core/qgsvectorlayer.cpp#L1684</a><br>
<br>
And it's all. The trust option only avoid to calculate layer Extent
and verify primary key for postgres layers.<br>
<br>
<span class="tlid-translation translation" lang="en"><span title=""
class="">The estimatedMetadata layer option is more common in
provider. It will be great to can check/uncheck this option.<br>
<br>
Regards<br>
René-luc<br>
</span></span><br>
<div class="moz-cite-prefix">Le 19/03/2020 à 19:30, Régis Haubourg a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CABgOYCef5nnNuY9p-0Q+4-tOVLCgGuXjutt9J2sPwT6qRh+xOw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="auto">Hi, can someone explain what is the real logic
currently coded for trust option? It feels like this topic
raises again each year for 5 years now, and we have regressions
and what it is supposed to do.
<div dir="auto"><br>
<div dir="auto">It was funded at start to not check at all any
metadata on the datasource and read only qgs informations </div>
<div dir="auto">Did it change for some reason ? Why? </div>
<div dir="auto"><br>
</div>
<div dir="auto">It should be adequate even for big databases
of QGIS stores all the required informations. </div>
<div dir="auto"><br>
</div>
<div dir="auto">Regards</div>
<div dir="auto">Regis</div>
</div>
</div>
<br>
</blockquote>
<br>
</body>
</html>